diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-05-14 20:41:45 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-05-14 20:41:45 +0000 |
commit | 405f66c46796dbbc453d77ddd8472899c7e0359e (patch) | |
tree | e9aa45d7e900586f1858caa41aded40bf6090646 /gdb/linespec.c | |
parent | b5ae236fa445289bccdfcb131df21dc1f7512567 (diff) | |
download | gdb-405f66c46796dbbc453d77ddd8472899c7e0359e.tar.gz |
gdb/
* linespec.c (convert_linespec_to_sals): New comment for
SOURCE_FILENAME assignment.
Diffstat (limited to 'gdb/linespec.c')
-rw-r--r-- | gdb/linespec.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); } } |