diff options
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index a576d88..d94d28d 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -50,6 +50,7 @@ #include "arch-utils.h" #include "cli/cli-utils.h" #include "format.h" +#include "source.h" #ifdef TUI #include "tui/tui.h" /* For tui_active et al. */ @@ -724,7 +725,7 @@ build_address_symbolic (struct gdbarch *gdbarch, if (sal.symtab) { - *filename = xstrdup (sal.symtab->filename); + *filename = xstrdup (symtab_to_filename_for_display (sal.symtab)); *line = sal.line; } } |