Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list

Nick Roberts
2007-06-05T12:56:13Z

> > 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:
#