diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-12-04 19:45:57 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-12-04 19:45:57 +0000 |
commit | ca9efc9063b7e94b26582c5b8d6c0c688d9678b6 (patch) | |
tree | fb564fcc0a0dc3869a289d85c59a0b04fe38caa9 /gdb/testsuite/gdb.asm/asmsrc1.s | |
parent | 5b5cd1b0faeeda7083dd2ddee4e395202b40ac63 (diff) | |
download | gdb-ca9efc9063b7e94b26582c5b8d6c0c688d9678b6.zip gdb-ca9efc9063b7e94b26582c5b8d6c0c688d9678b6.tar.gz gdb-ca9efc9063b7e94b26582c5b8d6c0c688d9678b6.tar.bz2 |
2001-11-30 Michael Snyder <msnyder@redhat.com>
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.asm/asmsrc1.s')
-rw-r--r-- | gdb/testsuite/gdb.asm/asmsrc1.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.asm/asmsrc1.s b/gdb/testsuite/gdb.asm/asmsrc1.s index 8bd41ad..f14cd91 100644 --- a/gdb/testsuite/gdb.asm/asmsrc1.s +++ b/gdb/testsuite/gdb.asm/asmsrc1.s @@ -46,3 +46,18 @@ foo3: .global exit exit: gdbasm_exit0 + +comment "A static function" + +foostatic: + gdbasm_enter + gdbasm_leave + +comment "A global variable" + + .global globalvar +gdbasm_datavar globalvar 11 + +comment "A static variable" + +gdbasm_datavar staticvar 5 |