This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 6 Jun 2007 00:55:55 +1200
- Subject: Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list
- References: <18019.18081.448928.93993@kahikatea.snap.net.nz> <20070604010633.GA927@caradoc.them.org>
> > This change breaks the behaviour of annotations with commands that span
> > multiple lines, like if, while, etc:
>
> Sorry, I didn't even know we had special annotations for this (and the
> testsuite must not cover it)...
Here's a test for gdb.base/annota3.exp. I can do the same for
gdb.base/annota1.exp and gdb.cp/annota3.exp, if needed.
--
Nick http://www.inet.net.nz/~nickrob
2007-06-06 Nick Roberts <nickrob@snap.net.nz>
* gdb.base/annota3.exp: Test for if construct.
*** annota3.exp 10 Jan 2007 06:59:09 +1300 1.12
--- annota3.exp 06 Jun 2007 00:50:22 +1200
*************** gdb_expect_list "annotation set at level
*** 99,105 ****
"set annotate 3"
}
!
#
# info break:
#
--- 99,121 ----
"set annotate 3"
}
! #
! # if construct:
! #
! send_gdb "if 1\n"
! gdb_expect {
! -re "\r\n\032\032post-prompt\r\n\r\n\032\032pre-commands\r\n >\r\n\032\032commands\r\n" {
! pass "start if construct"
! }
! timeout { fail "start if construct (timeout)" }
! }
! send_gdb "end\n"
! gdb_expect {
! -re "\r\n\032\032post-commands\r\n$gdb_prompt$" {
! pass "end if construct"
! }
! timeout { fail "end if construct (timeout)" }
! }
#
# info break:
#