Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Fred Fish <fnf@public.ninemoons.com>
To: gdb-patches@sources.redhat.com
Cc: fnf@ninemoons.com
Subject: [PATCH] Fix gdb.arch/{gdb1291.c,gdb1431.c}
Date: Fri, 28 Nov 2003 21:34:00 -0000	[thread overview]
Message-ID: <200311282133.hASLXpHs011974@fred.ninemoons.com> (raw)

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"


             reply	other threads:[~2003-11-28 21:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-28 21:34 Fred Fish [this message]
2004-02-04  5:17 ` [PATCH] Resubmitted - " Fred Fish
2004-02-04 14:22   ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200311282133.hASLXpHs011974@fred.ninemoons.com \
    --to=fnf@public.ninemoons.com \
    --cc=fnf@ninemoons.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox