This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix gdb.arch/{gdb1291.c,gdb1431.c}
- From: Fred Fish <fnf at public dot ninemoons dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: fnf at ninemoons dot com
- Date: Fri, 28 Nov 2003 14:33:51 -0700 (MST)
- Subject: [PATCH] Fix gdb.arch/{gdb1291.c,gdb1431.c}
- Reply-to: fnf at ninemoons dot com
Apparently the SH toolchain has changed recently to start adding
underbar prefixes. This patch allows resolution of the global
function symbols with either convention.
-Fred
2003-11-28 Fred Fish <fnf@redhat.com>
* gdb.arch/gdb1431.c: Add underbar prefixed version of global
function symbols.
* gdb.arch/gdb1291.c: Ditto.
Index: gdb.arch/gdb1291.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/gdb1291.c,v
retrieving revision 1.1
diff -c -p -r1.1 gdb1291.c
*** gdb.arch/gdb1291.c 3 Nov 2003 17:42:52 -0000 1.1
--- gdb.arch/gdb1291.c 28 Nov 2003 21:26:11 -0000
*************** main()
*** 29,34 ****
--- 29,35 ----
asm(".text\n"
" .align 5\n"
"sub:\n"
+ "_sub:\n"
" mov.l r14,@-r15\n"
" mov.w .STACK2,r3\n"
" sub r3,r15\n"
Index: gdb.arch/gdb1431.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/gdb1431.c,v
retrieving revision 1.1
diff -c -p -r1.1 gdb1431.c
*** gdb.arch/gdb1431.c 3 Nov 2003 17:42:52 -0000 1.1
--- gdb.arch/gdb1431.c 28 Nov 2003 21:26:12 -0000
*************** main()
*** 31,36 ****
--- 31,37 ----
asm(".text\n"
" .align 5\n"
"sub1:\n"
+ "_sub1:\n"
" mov.l r14,@-r15\n"
" add #-128,r15\n"
" add #-128,r15\n"
*************** asm(".text\n"
*** 48,53 ****
--- 49,55 ----
asm(".text\n"
" .align 5\n"
"sub2:\n"
+ "_sub2:\n"
" mov.l r14,@-r15\n"
" mov.w .STACK2,r3\n"
" sub r3,r15\n"