public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "palves at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug symtab/14931] New: GDB fails to read minsyms if debug info reading fails.
Date: Fri, 07 Dec 2012 18:39:00 -0000	[thread overview]
Message-ID: <bug-14931-4717@http.sourceware.org/bugzilla/> (raw)

http://sourceware.org/bugzilla/show_bug.cgi?id=14931

             Bug #: 14931
           Summary: GDB fails to read minsyms if debug info reading fails.
           Product: gdb
           Version: 7.0
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: palves@redhat.com
    Classification: Unclassified


Trying to check gdb's behavior in a previous release, I did:

$ ~/gdb/7_0/build/gdb/gdb -nx ./gdb/gdb
GNU gdb (GDB) 7.0.1.20091231-cvs
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/pedro/gdb/mygit/build/gdb/gdb...Dwarf Error: wrong
version in compilation unit header (is 4, should be 2) [in module
/home/pedro/gdb/mygit/build/gdb/gdb]
(gdb) 

The old GDB didn't understand dwarf 4, so it bailed out, but it also didn't
load the minsyms, while it could.  I think it should:

(gdb) b main
No symbol table is loaded.  Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n]) 

$ nm -A ./gdb/gdb | grep "T main$"
./gdb/gdb:0000000000457b4c T main

I haven't tried current mainline's behavior.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


             reply	other threads:[~2012-12-07 18:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-07 18:39 palves at redhat dot com [this message]
2012-12-19 20:43 ` [Bug symtab/14931] " tromey at redhat dot com
2013-01-14 20:51 ` cvs-commit at gcc dot gnu.org
2013-01-14 20:56 ` tromey at redhat dot com

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=bug-14931-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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).