aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/commands.exp
diff options
context:
space:
mode:
authorJackie Smith Cashion <jsmith@redhat.com>2001-12-13 22:42:23 +0000
committerJackie Smith Cashion <jsmith@redhat.com>2001-12-13 22:42:23 +0000
commite6ccd35f61cf792f387329dae86cadbcbee25049 (patch)
tree8d1eb937940ef4638d5463eea599e57221f9ad2a /gdb/testsuite/gdb.base/commands.exp
parent5d003c95923bce6c630e7c37873d667d0c273d0f (diff)
downloadgdb-e6ccd35f61cf792f387329dae86cadbcbee25049.zip
gdb-e6ccd35f61cf792f387329dae86cadbcbee25049.tar.gz
gdb-e6ccd35f61cf792f387329dae86cadbcbee25049.tar.bz2
gdb/ChangeLog
2001-12-13 Jackie Smith Cashion <jsmith@redhat.com> * cli/cli-script.c (print_command_lines): Remove extra "if", "else", "while", and "end" from show user output. testsuite/ChangeLog 2001-12-13 Jackie Smith Cashion <jsmith@redhat.com> * gdb.base/commands.exp (user_defined_command_test): Make "show user" test expect string more specific.
Diffstat (limited to 'gdb/testsuite/gdb.base/commands.exp')
-rw-r--r--gdb/testsuite/gdb.base/commands.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/commands.exp b/gdb/testsuite/gdb.base/commands.exp
index 266948c..dfaf965 100644
--- a/gdb/testsuite/gdb.base/commands.exp
+++ b/gdb/testsuite/gdb.base/commands.exp
@@ -261,7 +261,7 @@ proc user_defined_command_test {} {
"\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface\[^\n\]*\n\\\$\[0-9\]* = 0xdeadbeef\[^\n\]*\n\\\$\[0-9\]* = 0xfeedface" \
"execute user defined command in user_defined_command_test"
gdb_test "show user mycommand" \
- "while.*set.*if.*p/x.*else.*p/x.*end.*" \
+ " while \\\$arg0.*set.* if \\\(\\\$arg0.*p/x.* else\[^\n\].*p/x.* end\[^\n\].* end\[^\n\].*" \
"display user command in user_defined_command_test"
}