mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-01 16:35:04 +00:00
ca9efc9063
* gdb.asm/asm-source.exp: Add tests for list, search, finish, return, next, info source, info sources, info line, global and static variables, and static functions. * gdb.asm/common.inc: New macro gdbasm_datavar (default definition). * gdb.asm/i386.inc: Override default definition of gdbasm_datavar. * gdb.asm/asmsrc1.s: Add a static function and some variables. * gdb.asm/asmsrc2.s: Make foo2 call foo3 twice (to test 'next'). * gdb.asm/d10v.inc (gdbasm_enter): Set up frame pointer. (gdbasm_leave): Restore frame pointer. (gdbasm_startup): Copy stack set-up from crt0.S.
18 lines
270 B
ArmAsm
18 lines
270 B
ArmAsm
.include "common.inc"
|
|
.include "arch.inc"
|
|
|
|
comment "Second file in assembly source debugging testcase."
|
|
|
|
.global foo2
|
|
foo2:
|
|
gdbasm_enter
|
|
|
|
comment "Call someplace else (several times)."
|
|
|
|
gdbasm_call foo3
|
|
gdbasm_call foo3
|
|
|
|
comment "All done, return."
|
|
|
|
gdbasm_leave
|