asmsrc1.s

来自「gdb是linux下的一个远程调试环境.能让你很方便地调试linux下的代码.」· S 代码 · 共 64 行

S
64
字号
	.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 _start_start:	gdbasm_startup	gdbasm_call main	gdbasm_exit0comment "main routine for assembly source debugging test"comment "This particular testcase uses macros in <arch>.inc to achieve"comment "machine independence."	.global mainmain:	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_exit0comment "A routine for foo2 to call."	.global foo3foo3:	gdbasm_enter	gdbasm_leave	.global exitexit:	gdbasm_exit0comment "A static function"foostatic:	gdbasm_enter	gdbasm_leavecomment "A global variable"	.global globalvargdbasm_datavar	globalvar	11comment "A static variable"gdbasm_datavar	staticvar	5

⌨️ 快捷键说明

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