From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 883943858C56; Fri, 19 Jan 2024 10:29:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 883943858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1705660160; bh=Cb7Y+hKxxKUKICxPU2LvfDTcCcfGaxI/oFOEWQTHCFc=; h=From:To:Subject:Date:From; b=GMGQs0fKhqbLhbp9o30sfE0RiOayMHdTh7kHoAA9Gllhc7KlCh/SbYLWM2m05RuHX YuM7anzdhFQkSXISGVPXtPiSYc/Rfd489gcz9+s6y1GpyVhMWhKbGmX7NucJE0XgnN 4QolKgjPncBFwzUowSyggZdlMhbiIX2GIGuZI4qg= From: "blarsen at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug cli/31267] New: Bad hint when listing before reading symbols Date: Fri, 19 Jan 2024 10:29:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: cli X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: blarsen at redhat dot com 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=3D31267 Bug ID: 31267 Summary: Bad hint when listing before reading symbols Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: cli Assignee: unassigned at sourceware dot org Reporter: blarsen at redhat dot com Target Milestone: --- If a user tries to list source lines before GDB reads the inferior's symbol= s, they get the following error message: (gdb) list No symbol table is loaded. Use the "file" command. However, the error persists when the command is used, like so: (gdb) file ~/a.out=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Reading symbols from ~/a.out...=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 (No debugging symbols found in ~/a.out)=20=20=20=20=20=20=20=20=20=20= =20=20=20 (gdb) list=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 No symbol table is loaded. Use the "file" command.=20 GDB should instead realize if the command has been used and instead tell the user that symbols haven't been read yet (and suggest a command, eitehr 'sta= rt' or some command to read the symbols) --=20 You are receiving this mail because: You are on the CC list for the bug.=