From: Jan Kratochvil Date: Tue, 14 May 2013 20:41:45 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e93ba63057ae72f492c0bb30faf63d6b0aedcb4b;p=binutils-gdb.git gdb/ * linespec.c (convert_linespec_to_sals): New comment for SOURCE_FILENAME assignment. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8b820079978..c076bde2331 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-05-14 Jan Kratochvil + + * linespec.c (convert_linespec_to_sals): New comment for + SOURCE_FILENAME assignment. + 2013-05-14 Jan Kratochvil * cleanups.c (restore_my_cleanups): Replace gdb_assert by diff --git a/gdb/linespec.c b/gdb/linespec.c index 1c7a7a07caf..989c8d270fa 100644 --- a/gdb/linespec.c +++ b/gdb/linespec.c @@ -2059,6 +2059,10 @@ convert_linespec_to_sals (struct linespec_state *state, linespec_p ls) { const char *fullname = symtab_to_fullname (state->default_symtab); + /* It may be more appropriate to keep DEFAULT_SYMTAB in its symtab + form so that displaying SOURCE_FILENAME can follow the current + FILENAME_DISPLAY_STRING setting. But as it is used only rarely + it has been kept for code simplicity only in absolute form. */ ls->source_filename = xstrdup (fullname); } }