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]

Re: [PATCH] Resubmitted - Fix gdb.arch/{gdb1291.c,gdb1431.c}


On Friday 28 November 2003 14:33, Fred Fish wrote:
> 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

This patch never (AFAIK) got reviewed or approved so I'm resubmitting
it.  Here is a fresh copy.

-Fred

2004-02-03  Fred Fish  <fnf@redhat.com>

	* gdb.arch/gdb1431.c: Add underbar prefixed version of global
	function symbols.
	* gdb.arch/gdb1291.c: Ditto.

Index: testsuite/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
*** testsuite/gdb.arch/gdb1291.c	3 Nov 2003 17:42:52 -0000	1.1
--- testsuite/gdb.arch/gdb1291.c	4 Feb 2004 04:59:51 -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: testsuite/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
*** testsuite/gdb.arch/gdb1431.c	3 Nov 2003 17:42:52 -0000	1.1
--- testsuite/gdb.arch/gdb1431.c	4 Feb 2004 04:59:51 -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]