OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.3/] [gdb/] [testsuite/] [gdb.asm/] [asmsrc1.s] - Blame information for rev 1181

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1181 sfurman
        .include "common.inc"
2
        .include "arch.inc"
3
 
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."
7
 
8
 
9
comment "This file is not linked with crt0."
10
comment "Provide very simplistic equivalent."
11
 
12
        .global _start
13
_start:
14
        gdbasm_startup
15
        gdbasm_call main
16
        gdbasm_exit0
17
 
18
 
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."
22
 
23
        .global main
24
main:
25
        gdbasm_enter
26
 
27
comment "Call a macro that consists of several lines of assembler code."
28
 
29
        gdbasm_several_nops
30
 
31
comment "Call a subroutine in another file."
32
 
33
        gdbasm_call foo2
34
 
35
comment "All done."
36
 
37
        gdbasm_exit0
38
 
39
comment "A routine for foo2 to call."
40
 
41
        .global foo3
42
foo3:
43
        gdbasm_enter
44
        gdbasm_leave
45
 
46
        .global exit
47
exit:
48
        gdbasm_exit0
49
 
50
comment "A static function"
51
 
52
foostatic:
53
        gdbasm_enter
54
        gdbasm_leave
55
 
56
comment "A global variable"
57
 
58
        .global globalvar
59
gdbasm_datavar  globalvar       11
60
 
61
comment "A static variable"
62
 
63
gdbasm_datavar  staticvar       5

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.