diff options
author | Tom Tromey <tromey@redhat.com> | 2012-01-16 20:40:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-01-16 20:40:53 +0000 |
commit | 4aac40c83727ce9e8ec9d6968d589df0939c9827 (patch) | |
tree | 6dd54fa985311dd9b7d78ed28315dac7f1ffdf7e /gdb/testsuite | |
parent | cafec441901459c36ad92f1cd9eef648534ea53b (diff) | |
download | gdb-4aac40c83727ce9e8ec9d6968d589df0939c9827.zip gdb-4aac40c83727ce9e8ec9d6968d589df0939c9827.tar.gz gdb-4aac40c83727ce9e8ec9d6968d589df0939c9827.tar.bz2 |
gdb
* NEWS: Add item.
* symtab.h (compare_filenames_for_search): Declare.
* symtab.c (compare_filenames_for_search): New function.
(iterate_over_some_symtabs): Use it.
* symfile.h (struct quick_symbol_functions)
<map_symtabs_matching_filename>: Change spec.
* psymtab.c (partial_map_symtabs_matching_filename): Use
compare_filenames_for_search. Update for new spec.
* dwarf2read.c (dw2_map_symtabs_matching_filename): Use
compare_filenames_for_search. Update for new spec.
* breakpoint.c (clear_command): Use compare_filenames_for_search.
gdb/doc
* gdb.texinfo (Specify Location): Document relative file name
handling.
gdb/testsuite
* gdb.linespec/linespec.exp: Change some tests to use $decimal.
Add tests for relative directory.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.linespec/linespec.exp | 17 |
2 files changed, 16 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index abb08b9..88a56be 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2012-01-16 Tom Tromey <tromey@redhat.com> + * gdb.linespec/linespec.exp: Change some tests to use $decimal. + Add tests for relative directory. + +2012-01-16 Tom Tromey <tromey@redhat.com> + * gdb.base/printcmds.c (enum flag_enum): New. (three): New global. * gdb.base/printcmds.exp (test_print_enums): Add test for flag diff --git a/gdb/testsuite/gdb.linespec/linespec.exp b/gdb/testsuite/gdb.linespec/linespec.exp index 4ac2fd8..92be31c 100644 --- a/gdb/testsuite/gdb.linespec/linespec.exp +++ b/gdb/testsuite/gdb.linespec/linespec.exp @@ -44,19 +44,24 @@ if {$l1 != $l2} { error "somebody incompatibly modified the source files needed by linespec.exp" } +gdb_test "break one/thefile.cc:$l1" \ + "Breakpoint $decimal at $hex: file .*thefile.cc, line $l1." \ + "single-location break using dir/file:line" + +gdb_test "clear one/thefile.cc:$l1" \ + "Deleted breakpoint $decimal *" \ + "clear breakpoint using dir/file:line" + gdb_test "break thefile.cc:$l1" \ - "Breakpoint 1 at $hex: thefile.cc:$l1. \[(\]2 locations\[)\]" \ + "Breakpoint $decimal at $hex: thefile.cc:$l1. \[(\]2 locations\[)\]" \ "multi-location break using file:line" -# We'd like this to work, but it currently does not. -# gdb_test "break one/thefile.cc:$l1" - gdb_test "break dupname" \ - "Breakpoint 2 at $hex: dupname. \[(\]2 locations\[)\]" \ + "Breakpoint $decimal at $hex: dupname. \[(\]2 locations\[)\]" \ "multi-location break using duplicate function name" gdb_test "break dupname:label" \ - "Breakpoint 3 at $hex: dupname:label. \[(\]2 locations\[)\]" \ + "Breakpoint $decimal at $hex: dupname:label. \[(\]2 locations\[)\]" \ "multi-location break using duplicate function name and label" gdb_test_no_output "set breakpoint pending off" \ |