diff options
author | Doug Evans <dje@google.com> | 2012-08-13 14:31:00 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-08-13 14:31:00 +0000 |
commit | f47f77df4e0f38c96bf5a4c4d8ecda6c73f5ffc2 (patch) | |
tree | fb8ad5a2bc53fa09dd56d57e3ceb72c730c620f3 /gdb/testsuite/gdb.base | |
parent | 35d0a16941aa203778a48d840e283591549ea98b (diff) | |
download | gdb-f47f77df4e0f38c96bf5a4c4d8ecda6c73f5ffc2.zip gdb-f47f77df4e0f38c96bf5a4c4d8ecda6c73f5ffc2.tar.gz gdb-f47f77df4e0f38c96bf5a4c4d8ecda6c73f5ffc2.tar.bz2 |
* value.c (show_convenience): Tweak comment.
(_initialize_values): Mention convenience functions in the help text
for "show convenience".
doc/
* gdb.texinfo (Convenience Vars): Update text for "show convenience"
to include functions.
testsuite/
* gdb.base/default.exp: Update expected output of "show convenience".
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/default.exp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp index 138cc03..5a73fcc 100644 --- a/gdb/testsuite/gdb.base/default.exp +++ b/gdb/testsuite/gdb.base/default.exp @@ -595,11 +595,10 @@ gdb_test "show complaints" "Max number of complaints about incorrect symbols is gdb_test "show confirm" "Whether to confirm potentially dangerous operations is o\[a-z\]*." "show confirm" #test show convenience -# This is tricker as there are multiple internal convenience vars and we -# can't assume any particular order. -gdb_test_list_exact "show convenience" "show convenience" \ - "\[^\r\n\]+\[\r\n\]+" \ - "\[^\r\n\]+" \ +# This is trickier as there are multiple internal convenience vars and +# functions and we can't assume any particular order. +# And we have to handle the extra convenience funs provided by Python. +set show_conv_list \ { \ {$_sdata = void} \ {$_siginfo = void} \ @@ -618,6 +617,19 @@ gdb_test_list_exact "show convenience" "show convenience" \ {$_probe_arg10 = <error: No frame selected>} \ {$_probe_arg11 = <error: No frame selected>} \ } +if ![skip_python_tests] { + append show_conv_list \ + { + {$_memeq = <internal function _memeq>} \ + {$_regex = <internal function _regex>} \ + {$_streq = <internal function _streq>} \ + {$_strlen = <internal function _strlen>} \ + } +} +gdb_test_list_exact "show convenience" "show convenience" \ + "\[^\r\n\]+\[\r\n\]+" \ + "\[^\r\n\]+" \ + $show_conv_list #test show directories gdb_test "show directories" "Source directories searched: .cdir\[:;\].cwd" "show directories" |