From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 154D33858005; Wed, 28 Oct 2020 09:14:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 154D33858005 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/26797] New: [readnow] Dwarf error result in no minimal symbols Date: Wed, 28 Oct 2020 09:14:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2020 09:14:58 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26797 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=