This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix gdb.arch/{gdb1291.c,gdb1431.c}


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"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]