diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-06-10 21:50:55 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-06-10 21:50:55 +0000 |
commit | 533a737ed5f6de1299ced68234b2b147cd4396c7 (patch) | |
tree | 7d10506c172b818da316fede59fe30eab0660324 /gdb/testsuite | |
parent | 44b13c5a41d3b0fc2f122071e8c64987564dbf21 (diff) | |
download | gdb-533a737ed5f6de1299ced68234b2b147cd4396c7.zip gdb-533a737ed5f6de1299ced68234b2b147cd4396c7.tar.gz gdb-533a737ed5f6de1299ced68234b2b147cd4396c7.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-filename.exp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 297d1cb..8242272 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.dwarf2/dw2-filename.exp b/gdb/testsuite/gdb.dwarf2/dw2-filename.exp index 2d87446..fb7cf64 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} |