public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "aburgess at redhat dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug symtab/28900] GDB crash on loading symbols form openbios binary Date: Mon, 21 Feb 2022 12:06:23 +0000 [thread overview] Message-ID: <bug-28900-4717-b2LEH1mRCs@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-28900-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=28900 --- Comment #11 from Andrew Burgess <aburgess at redhat dot com> --- With commit 336125713fc GDB should no longer crash, but this is achieved by just ignoring the symbols stabs data that we don't currently know how to handle. If you do 'set complaints 1000' before loading the offending binary into GDB, then you get to see GDB complain about all the debug symbols it can't handle. The output looks like: During symbol reading: function `_savegpr_14' appears to be defined outside of all compilation units During symbol reading: function `_save32gpr_14' appears to be defined outside of all compilation units During symbol reading: function `_savegpr_15' appears to be defined outside of all compilation units ... snip ... During symbol reading: function `_restgpr_14' appears to be defined outside of all compilation units During symbol reading: function `_rest32gpr_14' appears to be defined outside of all compilation units During symbol reading: function `_restgpr_15' appears to be defined outside of all compilation units ... snip ... Which look like register save/restore hooks, but I don't claim to really understand. I don't believe that these symbols have and DWARF information available, so these functions will not show up in something like 'info functions', but there is a symbol for these functions in the symbol table, which GDB does read, so you can do things like 'x/10i _savegpr_14`, however, the symbol table entry has no type or size, so GDB doesn't understand the bounds of the function. Given the original bug description is for GDB crashing, and this is now fixed. I'd like to tentatively propose we close this bug. If Glenn feels like there is still important debug information that isn't being loaded, this might be better represented in a new bug. Given the lack of GDB developers interested in improving stabs support (right now), I suspect any new bug is not likely to get much attention. Thoughts? -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2022-02-21 12:06 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-02-16 22:02 [Bug symtab/28900] New: " development at efficientek dot com 2022-02-17 0:43 ` [Bug symtab/28900] " simark at simark dot ca 2022-02-17 16:17 ` development at efficientek dot com 2022-02-17 16:26 ` simark at simark dot ca 2022-02-17 16:28 ` simark at simark dot ca 2022-02-17 16:47 ` schwab@linux-m68k.org 2022-02-17 18:44 ` development at efficientek dot com 2022-02-18 16:52 ` tromey at sourceware dot org 2022-02-18 16:57 ` simark at simark dot ca 2022-02-19 19:53 ` aburgess at redhat dot com 2022-02-21 11:49 ` cvs-commit at gcc dot gnu.org 2022-02-21 12:06 ` aburgess at redhat dot com [this message] 2022-04-29 19:54 ` tromey at sourceware dot org
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-28900-4717-b2LEH1mRCs@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: linkBe 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).