public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/26797] New: [readnow] Dwarf error result in no minimal symbols
@ 2020-10-28  9:14 vries at gcc dot gnu.org
  2020-10-31 18:23 ` [Bug symtab/26797] " tromey at sourceware dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: vries at gcc dot gnu.org @ 2020-10-28  9:14 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=26797

            Bug ID: 26797
           Summary: [readnow] Dwarf error result in no minimal symbols
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
          Assignee: unassigned at sourceware dot org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

Normally we have:
...
(gdb) file dw2-error^M
Reading symbols from dw2-error...^M
Dwarf Error: wrong version in compilation unit header (is 153, should be 2, 3,
4 or 5) [in module dw2-error]^M
(No debugging symbols found in dw2-error)^M
(gdb) PASS: gdb.dwarf2/dw2-error.exp: file dw2-error
break -q main^M
Breakpoint 1 at 0x4004ab^M
(gdb) PASS: gdb.dwarf2/dw2-error.exp: break -q main
...

But with with -readnow, we have instead:
...
(gdb) file dw2-error^M
Reading symbols from dw2-error...^M
Dwarf Error: wrong version in compilation unit header (is 153, should be 2, 3,
4 or 5) [in module dw2-error]^M
(gdb) PASS: gdb.dwarf2/dw2-error.exp: file dw2-error
break -q main^M
No symbol table is loaded.  Use the "file" command.^M
(gdb) FAIL: gdb.dwarf2/dw2-error.exp: break -q main
...

So, with -readnow, we somehow also end up without minimal symbols.

-- 
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:[~2023-11-06  7:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-28  9:14 [Bug symtab/26797] New: [readnow] Dwarf error result in no minimal symbols vries at gcc dot gnu.org
2020-10-31 18:23 ` [Bug symtab/26797] " tromey at sourceware dot org
2023-09-08 10:27 ` cvs-commit at gcc dot gnu.org
2023-11-06  7:54 ` vries at gcc dot gnu.org

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).