Files
binutils-gdb/gdb/testsuite/gdb.base
Andrew Burgess 71458a6da1 gdb: display a symbol more often in multi-file list output
I noticed that when a command line 'list foo.c:10' displays multiple
files, the symbol would always be shown as "???", e.g.:

  file: "/tmp/foo.c", line number: 10, symbol: "???"

this is because, when the symtab_and_line is created for the
'foo.c:10', the pc and symbol are never filled in.

In this commit, I propose that, when we decide that the above header
line needs to be printed, we should attempt to lookup a symbol for the
relevant line, and if one is found, we can use that.

The symbol lookup is done by first calling find_pc_for_line, and then
using find_symbol_for_pc to find a suitable symbol.

Approved-By: Tom Tromey <tom@tromey.com>
2025-12-05 10:40:14 +00:00
..
2025-09-30 21:32:50 +02:00
2025-11-28 10:39:43 -05:00
2025-11-23 12:55:16 +01:00
2025-11-28 10:39:43 -05:00
2025-11-23 12:55:16 +01:00
2025-11-23 12:55:16 +01:00
2025-11-23 12:55:16 +01:00
2025-11-23 12:55:16 +01:00
2025-11-05 18:17:23 -03:00
2025-11-28 10:39:43 -05:00
2025-09-30 21:32:50 +02:00
2025-09-30 21:32:50 +02:00
2025-11-23 12:55:16 +01:00
2025-11-23 12:55:16 +01:00
2025-11-23 12:55:16 +01:00
2025-11-23 12:55:16 +01:00
2025-11-23 12:55:16 +01:00
2025-07-08 08:53:48 -06:00