diff options
author | Tom Tromey <tromey@redhat.com> | 2012-06-13 15:50:22 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-06-13 15:50:22 +0000 |
commit | d55637df6923689396e58c3d789e82314f4826ec (patch) | |
tree | 09d54ca9515512c682efdaad9febaa1983c0d8ae /gdb/testsuite/gdb.base/condbreak.exp | |
parent | 49c4e619f81a66545e2332dc218d9bf31bbb51ad (diff) | |
download | gdb-d55637df6923689396e58c3d789e82314f4826ec.zip gdb-d55637df6923689396e58c3d789e82314f4826ec.tar.gz gdb-d55637df6923689396e58c3d789e82314f4826ec.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.base/condbreak.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/condbreak.exp | 5 |
1 files changed, 5 insertions, 0 deletions
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" |