No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / gdb / testsuite / gdb.asm / asmsrc1.s
blob6e06b840110410350ec2f3c3aafa16b85a5dd17b
1 .include "common.inc"
2 .include "arch.inc"
4 comment "WARNING: asm-source.exp checks for line numbers printed by gdb."
5 comment "Be careful about changing this file without also changing"
6 comment "asm-source.exp."
9 comment "This file is not linked with crt0."
10 comment "Provide very simplistic equivalent."
12 .global _start
13 gdbasm_declare _start
14 gdbasm_startup
15 gdbasm_call main
16 gdbasm_exit0
17 gdbasm_end _start
19 comment "main routine for assembly source debugging test"
20 comment "This particular testcase uses macros in <arch>.inc to achieve"
21 comment "machine independence."
23 .global main
24 gdbasm_declare main
25 gdbasm_enter
27 comment "Call a macro that consists of several lines of assembler code."
29 gdbasm_several_nops
31 comment "Call a subroutine in another file."
33 gdbasm_call foo2
35 comment "All done."
37 gdbasm_exit0
38 gdbasm_end main
40 comment "A routine for foo2 to call."
42 .global foo3
43 gdbasm_declare foo3
44 gdbasm_enter
45 gdbasm_leave
46 gdbasm_end foo3
48 .global exit
49 gdbasm_declare exit
50 gdbasm_exit0
51 gdbasm_end exit
53 comment "A static function"
55 gdbasm_declare foostatic
56 gdbasm_enter
57 gdbasm_leave
58 gdbasm_end foostatic
60 comment "A global variable"
62 .global globalvar
63 gdbasm_datavar globalvar 11
65 comment "A static variable"
67 gdbasm_datavar staticvar 5
69 .include "note.inc"