From 58ce7251e876ad5b6569e3ee72dfe6c4c5697ca8 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Tue, 7 May 2013 17:04:29 +0000 Subject: gdb/ 2013-05-07 Sergio Durigan Junior PR breakpoints/15413: * breakpoint.c (condition_completer): Simplify the code to disconsider multiple locations of breakpoints when completing the "condition" command. gdb/testsuite/ 2013-05-07 Sergio Durigan Junior PR breakpoints/15413: * gdb.base/pending.exp: Add test for completion of the "condition" command for pending breakpoints. * gdb.linespec/linespec.ex: Add test for completion of the "condition" command when dealing with multiple locations. --- gdb/testsuite/gdb.base/pending.exp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/testsuite/gdb.base/pending.exp') diff --git a/gdb/testsuite/gdb.base/pending.exp b/gdb/testsuite/gdb.base/pending.exp index 68322f5..1ab896a 100644 --- a/gdb/testsuite/gdb.base/pending.exp +++ b/gdb/testsuite/gdb.base/pending.exp @@ -55,6 +55,9 @@ gdb_test_multiple "break pendfunc1" "set pending breakpoint" { } } +# Complete the condition (PR 15413). +gdb_test "complete condition " "condition 1" + gdb_test "info break" \ "Num Type\[ \]+Disp Enb Address\[ \]+What.* \[0-9\]+\[\t \]+breakpoint keep y.*PENDING.*pendfunc1.*" \ -- cgit v1.1