diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-07-01 22:37:52 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-07-01 22:37:52 +0000 |
commit | 1b05479a47026fdfdaf28c22966489eefac124b8 (patch) | |
tree | ee07bdc97cb66245415fd0da9dfb244252f20b99 /gdb/testsuite | |
parent | 5ad3a4ca203f5ec10d4c5eb801077f494e2a095e (diff) | |
download | gdb-1b05479a47026fdfdaf28c22966489eefac124b8.zip gdb-1b05479a47026fdfdaf28c22966489eefac124b8.tar.gz gdb-1b05479a47026fdfdaf28c22966489eefac124b8.tar.bz2 |
2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>
* top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
(struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
(gdb_readline_wrapper_cleanup): Do not reset the prompt.
(gdb_readline_wrapper): Do not save the prompt. Pass our prompt
to display_gdb_prompt.
2007-07-01 Nick Roberts <nickrob@snap.net.nz>
Daniel Jacobowitz <dan@codesourcery.com>
* gdb.base/annota3.exp: Test for if construct.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/annota3.exp | 24 |
2 files changed, 28 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 911a977..928b737 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-07-01 Nick Roberts <nickrob@snap.net.nz> + Daniel Jacobowitz <dan@codesourcery.com> + + * gdb.base/annota3.exp: Test for if construct. + 2007-06-26 Daniel Jacobowitz <dan@codesourcery.com> * gdb.base/chng-syms.exp: Handle glibc's __GI_exit. diff --git a/gdb/testsuite/gdb.base/annota3.exp b/gdb/testsuite/gdb.base/annota3.exp index 7e8e10b..d9f7639 100644 --- a/gdb/testsuite/gdb.base/annota3.exp +++ b/gdb/testsuite/gdb.base/annota3.exp @@ -99,7 +99,29 @@ gdb_expect_list "annotation set at level 3" "\r\n$gdb_prompt$" { "set annotate 3" } - +# +# if construct: +# +send_gdb "if 1\n" +gdb_expect { + -re "^if 1\r\n\r\n\032\032post-prompt\r\n\r\n\032\032pre-commands\r\n >\r\n\032\032commands\r\n$" { + pass "start if construct" + } + -re ".*\032\032commands\r\n" { + fail "start if construct" + } + timeout { fail "start if construct (timeout)" } +} +send_gdb "end\n" +gdb_expect { + -re "^end\r\n\r\n\032\032post-commands\r\n$gdb_prompt$" { + pass "end if construct" + } + -re ".*$gdb_prompt$" { + fail "end if construct" + } + timeout { fail "end if construct (timeout)" } +} # # info break: # |