diff options
author | Tom Tromey <tromey@redhat.com> | 2013-01-14 21:05:07 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-01-14 21:05:07 +0000 |
commit | 44478ab3404a5416c1864f8b47ad28eaca7bb0d9 (patch) | |
tree | 19712603f7ece0901405ea9f0598eff0b3f172dc /gdb/testsuite | |
parent | 06d66ee9d97cf451db4bdd7952eca099bc171706 (diff) | |
download | binutils-44478ab3404a5416c1864f8b47ad28eaca7bb0d9.zip binutils-44478ab3404a5416c1864f8b47ad28eaca7bb0d9.tar.gz binutils-44478ab3404a5416c1864f8b47ad28eaca7bb0d9.tar.bz2 |
* cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
set command.
* command.h (add_setshow_string_noescape_cmd): Update.
* corefile.c (set_gnutarget_command): Remove trailing whitespace.
(complete_set_gnutarget): New function.
(_initialize_core): Set the "set gnutarget" completer.
gdb/testsuite
* gdb.base/completion.exp: Add "set gnutarget" test.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/completion.exp | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e894bce..17da37a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2013-01-14 Tom Tromey <tromey@redhat.com> + * gdb.base/completion.exp: Add "set gnutarget" test. + +2013-01-14 Tom Tromey <tromey@redhat.com> + * gdb.dwarf2/dw2-restrict.S: New file. * gdb.dwarf2/dw2-restrict.c: New file. * gdb.dwarf2/dw2-restrict.exp: New file. diff --git a/gdb/testsuite/gdb.base/completion.exp b/gdb/testsuite/gdb.base/completion.exp index 566f5e0..8163a86 100644 --- a/gdb/testsuite/gdb.base/completion.exp +++ b/gdb/testsuite/gdb.base/completion.exp @@ -707,6 +707,9 @@ gdb_test "complete ptype struct some_" "ptype struct some_struct" gdb_test "complete ptype enum some_" "ptype enum some_enum" gdb_test "complete ptype union some_" "ptype union some_union" + +gdb_test "complete set gnutarget aut" "set gnutarget auto" + # Restore globals modified in this test... set timeout $oldtimeout1 |