From d55637df6923689396e58c3d789e82314f4826ec Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 13 Jun 2012 15:50:22 +0000 Subject: * breakpoint.c (condition_completer): New function. (_initialize_breakpoint): Use it. * value.c (complete_internalvar): New function. * value.h (complete_internalvar): Declare. testsuite * gdb.base/condbreak.exp: Add tests for "condition" completion. --- gdb/testsuite/gdb.base/condbreak.exp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gdb/testsuite/gdb.base/condbreak.exp') diff --git a/gdb/testsuite/gdb.base/condbreak.exp b/gdb/testsuite/gdb.base/condbreak.exp index fb82e56..4d0b4ba 100644 --- a/gdb/testsuite/gdb.base/condbreak.exp +++ b/gdb/testsuite/gdb.base/condbreak.exp @@ -261,3 +261,8 @@ gdb_test_multiple "continue" $test { xfail $test } } + +gdb_test "complete cond 1" "cond 1" +gdb_test "set variable \$var = 1" +gdb_test "complete cond \$v" "cond \\\$var" +gdb_test "complete cond 1 values\[0\].a" "cond 1 values.0..a_field" -- cgit v1.1