public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/31267] New: Bad hint when listing before reading symbols
@ 2024-01-19 10:29 blarsen at redhat dot com
  2024-01-19 15:45 ` [Bug cli/31267] " tromey at sourceware dot org
  2024-01-20  8:36 ` sam at gentoo dot org
  0 siblings, 2 replies; 3+ messages in thread
From: blarsen at redhat dot com @ 2024-01-19 10:29 UTC (permalink / raw)
  To: gdb-prs

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

            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 symbols,
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                                  
    Reading symbols from ~/a.out...                     
    (No debugging symbols found in ~/a.out)             
    (gdb) list                                          
    No symbol table is loaded.  Use the "file" command. 

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 'start'
or some command to read the symbols)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug cli/31267] Bad hint when listing before reading symbols
  2024-01-19 10:29 [Bug cli/31267] New: Bad hint when listing before reading symbols blarsen at redhat dot com
@ 2024-01-19 15:45 ` tromey at sourceware dot org
  2024-01-20  8:36 ` sam at gentoo dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2024-01-19 15:45 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
'start' won't really help here unless some library has symbols.
Add 'add-symbol-file', while it would work, is pretty obscure.
Maybe just repeating "there aren't debug symbols" would be more
helpful in the general case.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug cli/31267] Bad hint when listing before reading symbols
  2024-01-19 10:29 [Bug cli/31267] New: Bad hint when listing before reading symbols blarsen at redhat dot com
  2024-01-19 15:45 ` [Bug cli/31267] " tromey at sourceware dot org
@ 2024-01-20  8:36 ` sam at gentoo dot org
  1 sibling, 0 replies; 3+ messages in thread
From: sam at gentoo dot org @ 2024-01-20  8:36 UTC (permalink / raw)
  To: gdb-prs

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

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-20  8:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-19 10:29 [Bug cli/31267] New: Bad hint when listing before reading symbols blarsen at redhat dot com
2024-01-19 15:45 ` [Bug cli/31267] " tromey at sourceware dot org
2024-01-20  8:36 ` sam at gentoo dot 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).