From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 904743858291; Thu, 19 Jan 2023 18:53:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 904743858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674154395; bh=TOq9V6fbQVtcuk5/q5OsStUNMGaE11kra6lIUuOFMKo=; h=From:To:Subject:Date:From; b=xSPaDD2cFUZCbE4yUYwF+Ri+BRm0tbY7ylLzkZ1JwWnhRvJg24OQ8QwRNVjqXHyqm oRomcTwwyGYopyaKXssHgSjntMOsDsns8QrsYNO7ulAlKN9ejZAtgFHWvcqRaHrszO zRDCyav4AoVR040OS1WPrrxbtnii4JztM6sLKePA= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug symtab/30026] New: ctf test program gives weird results with "list" Date: Thu, 19 Jan 2023 18:53:15 +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: tromey at sourceware dot 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30026 Bug ID: 30026 Summary: ctf test program gives weird results with "list" Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: tromey at sourceware dot org Target Milestone: --- I tried the test programs in gdb.ctf. If I debug one and then type "list" I get very weird output: murgatroyd. ../gdb -nx ./outputs/gdb.ctf/cross-tu-cyclic/cross-tu-cyclic=20 [...] (gdb) list 1 ^?ELF^B^A^A What's happening here is that in ctfread.c:scan_partial_symbols: if (strcmp (fname, ".ctf") =3D=3D 0) { fname =3D bfd_get_filename (of->obfd.get ()); isparent =3D true; } ctf_psymtab *pst =3D create_partial_symtab (fname, tup->arc, cfp, partial_symtabs, of); IOW, ctfread is saying that the source file for this psymtab is the executable itself, which is clearly wrong. --=20 You are receiving this mail because: You are on the CC list for the bug.=