From 44478ab3404a5416c1864f8b47ad28eaca7bb0d9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 14 Jan 2013 21:05:07 +0000 Subject: * 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. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/completion.exp | 3 +++ 2 files changed, 7 insertions(+) (limited to 'gdb/testsuite') 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 + * gdb.base/completion.exp: Add "set gnutarget" test. + +2013-01-14 Tom Tromey + * 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 -- cgit v1.1