From: Jan Kratochvil Date: Fri, 10 Jun 2011 21:56:04 +0000 (+0000) Subject: gdb/ X-Git-Tag: gdb_7_3-2011-07-26-release~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dbdc08c21446ded6971fe268af5f5291e3aae14;p=thirdparty%2Fbinutils-gdb.git gdb/ * symtab.c (output_partial_symbol_filename): Exchange the filename and fullname parameters order. gdb/testsuite/ * gdb.dwarf2/dw2-filename.exp (info sources): New testcase. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 72592f0b22e..85ac0bbc675 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-06-10 Jan Kratochvil + + * symtab.c (output_partial_symbol_filename): Exchange the filename and + fullname parameters order. + 2011-06-03 Tom Tromey * python/py-inferior.c (python_inferior_exit): Use inferior's exit diff --git a/gdb/symtab.c b/gdb/symtab.c index d74f6e66b16..7be368736db 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -2840,7 +2840,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); diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index aeda9a97a62..ad5617ec5d4 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-06-10 Jan Kratochvil + + * gdb.dwarf2/dw2-filename.exp (info sources): New testcase. + 2011-05-31 Pedro Alves * gdb.arch/i386-dr3-watch.c: New file. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-filename.exp b/gdb/testsuite/gdb.dwarf2/dw2-filename.exp index 2d87446c5f0..fb7cf6408c2 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-filename.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-filename.exp @@ -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}