asmsrc1.s

来自「这个是LINUX下的GDB调度工具的源码」· S 代码 · 共 70 行

S
70
字号
	.include "common.inc"	.include "arch.inc"comment "WARNING: asm-source.exp checks for line numbers printed by gdb."comment "Be careful about changing this file without also changing"comment "asm-source.exp."	comment	"This file is not linked with crt0."comment	"Provide very simplistic equivalent."		.global _startgdbasm_declare _start	gdbasm_startup	gdbasm_call main	gdbasm_exit0	gdbasm_end _startcomment "main routine for assembly source debugging test"comment "This particular testcase uses macros in <arch>.inc to achieve"comment "machine independence."	.global maingdbasm_declare main	gdbasm_entercomment "Call a macro that consists of several lines of assembler code."	gdbasm_several_nopscomment "Call a subroutine in another file."	gdbasm_call foo2comment "All done."	gdbasm_exit0	gdbasm_end maincomment "A routine for foo2 to call."	.global foo3gdbasm_declare foo3	gdbasm_enter	gdbasm_leave	gdbasm_end foo3	.global exitgdbasm_declare exit	gdbasm_exit0	gdbasm_end exitcomment "A static function"gdbasm_declare foostatic	gdbasm_enter	gdbasm_leave	gdbasm_end foostaticcomment "A global variable"	.global globalvargdbasm_datavar	globalvar	11comment "A static variable"gdbasm_datavar	staticvar	5	.include "note.inc"

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?