* symtab.c (output_partial_symbol_filename): Exchange the filename and
	fullname parameters order.

gdb/testsuite/
	* gdb.dwarf2/dw2-filename.exp (info sources): New testcase.
This commit is contained in:
Jan Kratochvil 2011-06-10 21:50:55 +00:00
parent 44b13c5a41
commit 533a737ed5
4 changed files with 13 additions and 1 deletions

View 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.

View 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);

View 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.

View 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}