diff options
author | Yao Qi <yao@codesourcery.com> | 2012-07-19 12:48:17 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-07-19 12:48:17 +0000 |
commit | 6ace3df1ec836a2c7aaabbd32877229757fae412 (patch) | |
tree | c9a18d6b62815ab120b435221b3b0c0413634527 /gdb/testsuite/gdb.base/setshow.exp | |
parent | f1415016b687b6b9d1f5c53c91036f8a565b2c52 (diff) | |
download | gdb-6ace3df1ec836a2c7aaabbd32877229757fae412.zip gdb-6ace3df1ec836a2c7aaabbd32877229757fae412.tar.gz gdb-6ace3df1ec836a2c7aaabbd32877229757fae412.tar.bz2 |
* cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
and case 'var_optional_filename' together.
* infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
instead of add_setshow_optional_filename_cmd for setshow command
'args'. Set completer for 'set args'.
gdb/testsuite:
* gdb.base/setshow.exp: Test 'set args ~'.
Diffstat (limited to 'gdb/testsuite/gdb.base/setshow.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/setshow.exp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/setshow.exp b/gdb/testsuite/gdb.base/setshow.exp index b218314..9af5c30 100644 --- a/gdb/testsuite/gdb.base/setshow.exp +++ b/gdb/testsuite/gdb.base/setshow.exp @@ -87,6 +87,10 @@ gdb_test_no_output "set annotate 0" "set annotate 0" gdb_test "show annotate" "Annotation_level is 0..*" "show annotate (0)" #test annotation_level 0 gdb_test "info line 1" "Line 1 of .* is at address .* but contains no code.*" "annotation_level 0" + +gdb_test_no_output "set args ~" +gdb_test "show args" "Argument list to give program being debugged when it is started is \"~\"..*" \ + "show args ~" #test set args gdb_test_no_output "set args foo bar blup baz bubble" "set args" #test show args |