public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug symtab/14931] New: GDB fails to read minsyms if debug info reading fails. @ 2012-12-07 18:39 palves at redhat dot com 2012-12-19 20:43 ` [Bug symtab/14931] " tromey at redhat dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: palves at redhat dot com @ 2012-12-07 18:39 UTC (permalink / raw) To: gdb-prs 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug symtab/14931] GDB fails to read minsyms if debug info reading fails. 2012-12-07 18:39 [Bug symtab/14931] New: GDB fails to read minsyms if debug info reading fails palves at redhat dot com @ 2012-12-19 20:43 ` 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 2 siblings, 0 replies; 4+ messages in thread From: tromey at redhat dot com @ 2012-12-19 20:43 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14931 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com AssignedTo|unassigned at sourceware |tromey at redhat dot com |dot org | --- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-12-19 20:43:21 UTC --- Testing a patch. -- 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug symtab/14931] GDB fails to read minsyms if debug info reading fails. 2012-12-07 18:39 [Bug symtab/14931] New: GDB fails to read minsyms if debug info reading fails palves at redhat dot com 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 2 siblings, 0 replies; 4+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2013-01-14 20:51 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14931 --- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2013-01-14 20:51:54 UTC --- CVSROOT: /cvs/src Module name: src Changes by: tromey@sourceware.org 2013-01-14 20:51:48 Modified files: gdb : ChangeLog dwarf2read.c psympriv.h psymtab.c gdb/testsuite : ChangeLog Added files: gdb/testsuite/gdb.dwarf2: dw2-error.S dw2-error.c dw2-error.exp Log message: PR symtab/14931: * psymtab.c (struct psymtab_state): New. (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New functions. * psympriv.h (make_cleanup_discard_psymtabs): Declare. * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions. gdb/testsuite * gdb.dwarf2/dw2-error.exp: New file. * gdb.dwarf2/dw2-error.c: New file. * gdb.dwarf2/dw2-error.S: New file. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15014&r2=1.15015 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.728&r2=1.729 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/psympriv.h.diff?cvsroot=src&r1=1.17&r2=1.18 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/psymtab.c.diff?cvsroot=src&r1=1.60&r2=1.61 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3504&r2=1.3505 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw2-error.S.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw2-error.c.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.dwarf2/dw2-error.exp.diff?cvsroot=src&r1=NONE&r2=1.1 -- 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug symtab/14931] GDB fails to read minsyms if debug info reading fails. 2012-12-07 18:39 [Bug symtab/14931] New: GDB fails to read minsyms if debug info reading fails palves at redhat dot com 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 2 siblings, 0 replies; 4+ messages in thread From: tromey at redhat dot com @ 2013-01-14 20:56 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=14931 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Target Milestone|--- |7.6 --- Comment #3 from Tom Tromey <tromey at redhat dot com> 2013-01-14 20:56:02 UTC --- Fixed. -- 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-14 20:56 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-12-07 18:39 [Bug symtab/14931] New: GDB fails to read minsyms if debug info reading fails palves at redhat dot com 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
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).