aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-03-24 20:25:17 +0000
committerTom Tromey <tromey@redhat.com>2011-03-24 20:25:17 +0000
commit9ef07c8ca4143ec17557e855fe05bb0cd55283b4 (patch)
tree33c0fd2374d51b00ec5662ddbef427f613c4ef8f /gdb/testsuite/gdb.base
parent56435ebec80eae3bd6511f386f9a86f8703b3de8 (diff)
downloadgdb-9ef07c8ca4143ec17557e855fe05bb0cd55283b4.zip
gdb-9ef07c8ca4143ec17557e855fe05bb0cd55283b4.tar.gz
gdb-9ef07c8ca4143ec17557e855fe05bb0cd55283b4.tar.bz2
gdb
PR breakpoints/11816: * linespec.c (decode_line_1): Parse `function:label' linespecs. (decode_compound): Update. (find_function_symbol): New function. (decode_dollar): Update. (decode_label): Add 'function_symbol' parameter. Handle function-relative labels. (decode_variable): Update. (symbol_found): Add 'function_symbol' parameter. Use label's PC, not its line. Set `special_display' and canonical name for labels. gdb/doc * gdb.texinfo (Specify Location): Document `function:label' linespec. gdb/testsuite * gdb.base/label.exp: Use `main:there' linespec. Add re-running test.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/label.exp8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/label.exp b/gdb/testsuite/gdb.base/label.exp
index de6aaf7..be23738 100644
--- a/gdb/testsuite/gdb.base/label.exp
+++ b/gdb/testsuite/gdb.base/label.exp
@@ -46,7 +46,7 @@ gdb_test "break here" \
"Breakpoint.*at.*" \
"breakpoint here"
-gdb_test "break there" \
+gdb_test "break main:there" \
"Breakpoint.*at.*" \
"breakpoint there"
@@ -57,3 +57,9 @@ gdb_test "cont" \
gdb_test "cont" \
"Breakpoint 2,.*" \
"continue to 'here'"
+
+rerun_to_main
+
+gdb_test "cont" \
+ "Breakpoint 3,.*" \
+ "continue to 'there' after re-run"