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 | e93ba63057ae72f492c0bb30faf63d6b0aedcb4b (patch) | |
tree | 3abcfdc0a0f011ac0021d646ce028892bc140f8e /gdb/linespec.c | |
parent | 5821aace701864d3aced34c974db27de52b0160c (diff) | |
download | gdb-e93ba63057ae72f492c0bb30faf63d6b0aedcb4b.zip gdb-e93ba63057ae72f492c0bb30faf63d6b0aedcb4b.tar.gz gdb-e93ba63057ae72f492c0bb30faf63d6b0aedcb4b.tar.bz2 |
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 1c7a7a0..989c8d2 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); } } |