public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@gnu.org>
To: amodra@bigpond.net.au
Cc: binutils@sources.redhat.com, gdb@sources.redhat.com
Subject: Giving canonical sections a name breaks GDB?
Date: Mon, 20 Dec 2004 12:41:00 -0000	[thread overview]
Message-ID: <200412201241.iBKCfCiI021313@juw15.nfra.nl> (raw)

Hi Alan,

GDB is a wee bit broken on sparc-sun-solaris2.9, and it seems the
following patch is the culprit:

2004-12-11  Alan Modra  <amodra@bigpond.net.au>

        * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
        canonical sections syms have a name.

With this patch, I get the following output in GDB:

(gdb) disas main
Dump of assembler code for function main:
0x00012928 <main+0>:    save  %sp, -1272, %sp
0x0001292c <main+4>:    sethi  %hi(0x24400), %o0
..
0x0001351c <main+3060>: ld  [ %o0 ], %o1
0x00013520 <main+3064>: ld  [ %o1 ], %o0
0x00013524 <.SUNW_version+0>:   st  %o0, [ %fp + -952 ]
0x00013528 <.SUNW_version+4>:   ld  [ %o1 + 4 ], %o0
..
0x00013b60 <.SUNW_version+1596>:        ret 
0x00013b64 <.SUNW_version+1600>:        restore 
End of assembler dump.

(.SUNW_version is the name of one of the sections in the ELF file)

without the patch above, everything is fine.

Any idea what's wrong?

Mark

             reply	other threads:[~2004-12-20 12:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-20 12:41 Mark Kettenis [this message]
2004-12-20 22:35 ` Alan Modra
2004-12-21 20:28   ` Mark Kettenis
2004-12-30 22:32     ` Alan Modra

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=200412201241.iBKCfCiI021313@juw15.nfra.nl \
    --to=kettenis@gnu.org \
    --cc=amodra@bigpond.net.au \
    --cc=binutils@sources.redhat.com \
    --cc=gdb@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).