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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [gdb/] [testsuite/] [gdb.asm/] [asmsrc1.s] - Blame information for rev 157

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
        .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
        gdbasm_declare _start
14
        gdbasm_startup
15
        gdbasm_call main
16
        gdbasm_exit0
17
        gdbasm_end _start
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
        gdbasm_declare main
25
        gdbasm_enter
26
 
27
        comment "Call a macro that consists of several lines of assembler code."
28
 
29
        comment "mark: main start"
30
        gdbasm_several_nops
31
 
32
        comment "Call a subroutine in another file."
33
 
34
        comment "mark: call foo2"
35
        gdbasm_call foo2
36
 
37
        comment "All done."
38
 
39
        comment "mark: main exit"
40
        gdbasm_exit0
41
        gdbasm_end main
42
 
43
        comment "mark: search"
44
        comment "A routine for foo2 to call."
45
 
46
        .global foo3
47
        gdbasm_declare foo3
48
        gdbasm_enter
49
        comment "mark: foo3 start"
50
        gdbasm_leave
51
        gdbasm_end foo3
52
 
53
        .global exit
54
        gdbasm_declare exit
55
        gdbasm_exit0
56
        gdbasm_end exit
57
 
58
        comment "A static function"
59
 
60
        gdbasm_declare foostatic
61
        gdbasm_enter
62
        gdbasm_leave
63
        gdbasm_end foostatic
64
 
65
        comment "A global variable"
66
 
67
        .global globalvar
68
        gdbasm_datavar  globalvar       11
69
 
70
        comment "A static variable"
71
 
72
        gdbasm_datavar  staticvar       5
73
 
74
        .include "note.inc"

powered by: WebSVN 2.1.0

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