diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2003-01-16 01:56:16 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2003-01-16 01:56:16 +0000 |
commit | 0fbc361cc707fc68e2661e7a6163df687d7a38ad (patch) | |
tree | 36785a5373108653c69297d8b6446f4c9164e392 /gdb/testsuite | |
parent | c362c33a0d5c1919c5097a4004d1670338789812 (diff) | |
download | gdb-0fbc361cc707fc68e2661e7a6163df687d7a38ad.zip gdb-0fbc361cc707fc68e2661e7a6163df687d7a38ad.tar.gz gdb-0fbc361cc707fc68e2661e7a6163df687d7a38ad.tar.bz2 |
2003-01-15 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/break.exp: Fix change of default location, because of
removal of until tests.
* gdb.base/help.exp: Update test for new 'until' help message.
Add test for help on 'advance'.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/help.exp | 6 |
3 files changed, 14 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 76c72b5..2831d31 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2003-01-15 Elena Zannoni <ezannoni@redhat.com> + * gdb.base/break.exp: Fix change of default location, because of + removal of until tests. + * gdb.base/help.exp: Update test for new 'until' help message. + Add test for help on 'advance'. * gdb.base/args.exp: Fix foobar with GDBFLAGS global. 2003-01-15 Mark Kettenis <kettenis@gnu.org> diff --git a/gdb/testsuite/gdb.base/break.exp b/gdb/testsuite/gdb.base/break.exp index 6e393e6..fbc0e11 100644 --- a/gdb/testsuite/gdb.base/break.exp +++ b/gdb/testsuite/gdb.base/break.exp @@ -375,6 +375,12 @@ gdb_expect { timeout {fail "(timeout) break on non-existent source line"} } +# Run to the desired default location. If not positioned here, the +# tests below don't work. +# +gdb_test "until 79" "main .* at .*:79.*" "until 79" + + # Verify that GDB allows one to just say "break", which is treated # as the "default" breakpoint. Note that GDB gets cute when printing # the informational message about other breakpoints at the same diff --git a/gdb/testsuite/gdb.base/help.exp b/gdb/testsuite/gdb.base/help.exp index 50da677..69cf40d 100644 --- a/gdb/testsuite/gdb.base/help.exp +++ b/gdb/testsuite/gdb.base/help.exp @@ -36,6 +36,8 @@ gdb_test "set height 400" "" "test set height" # use a larger expect input buffer for long help outputs. # test help add-symbol-file gdb_test "help add-symbol-file" "Usage: add-symbol-file FILE ADDR \\\[-s <SECT> <SECT_ADDR> -s <SECT> <SECT_ADDR> \.\.\.\\\]\[\r\n\]+Load the symbols from FILE, assuming FILE has been dynamically loaded\.\[\r\n\]+ADDR is the starting address of the file's text\.\[\r\n\]+The optional arguments are section-name section-address pairs and\[\r\n\]+should be specified if the data and bss segments are not contiguous\[\r\n\]+with the text\. SECT is a section name to be loaded at SECT_ADDR\." "help add-symbol-file" +# test help advance +gdb_test "help advance" "Continue the program up to the given location \\(same form as args for break command\\)\.\[\r\n]+Execution will also stop upon exit from the current stack frame\." "help advance" # test help aliases gdb_test "help aliases" "Aliases of other commands\.\[\r\n\]+List of commands\:.*\[\r\n\]+Type \"help\" followed by command name for full documentation\.\[\r\n\]+Command name abbreviations are allowed if unambiguous\." "help aliases" # test help append @@ -562,9 +564,9 @@ gdb_test "help tbreak" "Set a temporary breakpoint.*" "help tbreak" # test help tty gdb_test "help tty" "Set terminal for future runs of program being debugged\." "help tty" # test help until "u" abbreviation -gdb_test "help u" "Execute until the program reaches a source line greater than the current\[\r\n\]+or a specified line or address or function \\(same args as break command\\)\.\[\r\n\]+Execution will also stop upon exit from the current stack frame\." "help until \"u\" abbreviation" +gdb_test "help u" "Execute until the program reaches a source line greater than the current\[\r\n\]+or a specified location \\(same args as break command\\) within the current frame\." "help until \"u\" abbreviation" # test help until -gdb_test "help until" "Execute until the program reaches a source line greater than the current\[\r\n\]+or a specified line or address or function \\(same args as break command\\)\.\[\r\n\]+Execution will also stop upon exit from the current stack frame\." "help until" +gdb_test "help until" "Execute until the program reaches a source line greater than the current\[\r\n\]+or a specified location \\(same args as break command\\) within the current frame\." "help until" # test help undisplay gdb_test "help undisplay" "Cancel some expressions to be displayed when program stops\.\[\r\n\]+Arguments are the code numbers of the expressions to stop displaying\.\[\r\n\]+No argument means cancel all automatic-display expressions\.\[\r\n\]+\"delete display\" has the same effect as this command\.\[\r\n\]+Do \"info display\" to see current list of code numbers\." "help undisplay" # test help unset environment |