gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 14 May 2013 20:41:45 +0000 (20:41 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 14 May 2013 20:41:45 +0000 (20:41 +0000)
* linespec.c (convert_linespec_to_sals): New comment for
SOURCE_FILENAME assignment.

gdb/ChangeLog
gdb/linespec.c

index 8b8200799784f60ee1e5f55c0f8d8cd8de4d7a28..c076bde2331fb2ade1ce8850a94dad5bf9db7964 100644 (file)
@@ -1,3 +1,8 @@
+2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * linespec.c (convert_linespec_to_sals): New comment for
+       SOURCE_FILENAME assignment.
+
 2013-05-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * cleanups.c (restore_my_cleanups): Replace gdb_assert by
index 1c7a7a07caf2406d8548b6146d584f84cc35e367..989c8d270fae8109f3d87e1c86d4fe7541756d82 100644 (file)
@@ -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);
          }
     }