* gdb.base/completion.exp (INPUTRC): Set this environment variable
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.asm / asmsrc1.s
CommitLineData
c906108c
SS
1 .include "common.inc"
2 .include "arch.inc"
3
78492fde
AC
4comment "WARNING: asm-source.exp checks for line numbers printed by gdb."
5comment "Be careful about changing this file without also changing"
6comment "asm-source.exp."
7
8
9comment "This file is not linked with crt0."
10comment "Provide very simplistic equivalent."
11
12 .global _start
13_start:
14 startup
15 call main
16 exit0
17
18
c906108c
SS
19comment "main routine for assembly source debugging test"
20comment "This particular testcase uses macros in <arch>.inc to achieve"
78492fde 21comment "machine independence."
c906108c
SS
22
23 .global main
24main:
25 enter
26
27comment "Call a macro that consists of several lines of assembler code."
28
29 several_nops
30
31comment "Call a subroutine in another file."
32
33 call foo2
34
35comment "All done."
36
37 exit0
38
39comment "A routine for foo2 to call."
40
41 .global foo3
42foo3:
43 enter
44 leave
45
46 .global exit
47exit:
48 exit0
This page took 0.13451 seconds and 4 git commands to generate.