diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-06-11 19:16:24 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-06-11 19:16:24 +0000 |
commit | cc80f267162ba7f1cab2fcf605270a3510cf010b (patch) | |
tree | 8e5643f4a185e0c7d1c8b8ef07a83aec97b258dd /gdb/testsuite | |
parent | 356d9f9d9ea883adf486ade721fc2b516a8902c7 (diff) | |
download | gdb-cc80f267162ba7f1cab2fcf605270a3510cf010b.zip gdb-cc80f267162ba7f1cab2fcf605270a3510cf010b.tar.gz gdb-cc80f267162ba7f1cab2fcf605270a3510cf010b.tar.bz2 |
gdb/
Fix regression by the "ambiguous linespec" series.
* breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
get_last_displayed_symtab and get_last_displayed_line and depending
on CURSAL.
gdb/testsuite/
Fix regression by the "ambiguous linespec" series.
* gdb.base/break.exp (list marker1, break lineno, delete $bpnum): New
tests.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break.exp | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 40aa47d..dfc7753 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com> + Fix regression by the "ambiguous linespec" series. + * gdb.base/break.exp (list marker1, break lineno, delete $bpnum): New + tests. + +2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com> + * lib/future.exp: Set $use_gdb_compile even if only find_go_linker is missing. diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp index a203364..14e9345 100644 --- a/gdb/testsuite/gdb.base/break.exp +++ b/gdb/testsuite/gdb.base/break.exp @@ -371,6 +371,13 @@ gdb_expect { } } +# Test the 'list' commands sets current file for the 'break LINENO' command. +set bp_marker1 [gdb_get_line_number "set breakpoint 16 here" ${srcfile1}] +gdb_test "list marker1" ".*" +gdb_test "break $bp_marker1" "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*${srcfile1}, line ${bp_marker1}\\." \ + "break lineno" +gdb_test_no_output {delete $bpnum} + # # run until the breakpoint at a line number # |