gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 10 Jun 2011 21:50:55 +0000 (21:50 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 10 Jun 2011 21:50:55 +0000 (21:50 +0000)
* symtab.c (output_partial_symbol_filename): Exchange the filename and
fullname parameters order.

gdb/testsuite/
* gdb.dwarf2/dw2-filename.exp (info sources): New testcase.

gdb/ChangeLog
gdb/symtab.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-filename.exp

index 8962f1a96658278e0ca265fa14ada188fb0dd468..c72fda47fccad0353d96d7f0fc063de708a809ce 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * symtab.c (output_partial_symbol_filename): Exchange the filename and
+       fullname parameters order.
+
 2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        Code cleanup.
index 8879ddf4fc2dacb7e200333ce29d00f4c39365ea..ba86dec5a95c4c1b8cda9de7e09457f881f11bcb 100644 (file)
@@ -2837,7 +2837,7 @@ output_source_filename (const char *name, int *first)
 
 /* A callback for map_partial_symbol_filenames.  */
 static void
-output_partial_symbol_filename (const char *fullname, const char *filename,
+output_partial_symbol_filename (const char *filename, const char *fullname,
                                void *data)
 {
   output_source_filename (fullname ? fullname : filename, data);
index 297d1cbe6909911e834731f30c3139d3d8bc0eda..8242272371a8da7f76160d767167c67ff33f98cc 100644 (file)
@@ -1,3 +1,7 @@
+2011-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.dwarf2/dw2-filename.exp (info sources): New testcase.
+
 2011-06-10  Tom Tromey  <tromey@redhat.com>
 
        * gdb.cp/temargs.exp: Let tests pass if compiler bug is fixed.
index 2d87446c5f0c522f316c0f946152baedea4ef543..fb7cf6408c298866ed874d3701a4d2c03785ce69 100644 (file)
@@ -38,3 +38,6 @@ clean_restart ${testfile}.x
 # is that the file and fullname fields are now inverted.
 gdb_test "interpreter-exec mi -file-list-exec-source-files" \
          ".*{file=\"file1\\.txt\",fullname=\".+file1\\.txt\"}.*"
+
+# And `info sources' should return the fullname incl. the directories.
+gdb_test "info sources" {[/\\]file1\.txt}
This page took 0.042819 seconds and 4 git commands to generate.