This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Testsuite failures
> If you're not in a procedure you're normally at global scope. Must
> have been some other problem, maybe quoting. The file already uses
> $hex elsewhere.
I see the problem now, gdb_expect_list needs "-re":
*** annota3.exp 12 Mar 2006 19:42:40 +1300 1.5
--- annota3.exp 17 Jul 2006 12:32:54 +1200
*************** gdb_expect_list "annotation set at level
*** 91,103 ****
send_gdb "run\n"
gdb_expect_list "first run until main breakpoint" "$gdb_prompt$" {
! "\r\n\032\032post-prompt\r\n"
"Starting program: .*annota3 \r\n"
"\r\n\032\032starting\r\n"
"\r\n\032\032breakpoint 1\r\n"
"\r\n"
! "Breakpoint 1, main \\(\\) at .*annota3.cc:25\r\n"
! "\r\n\032\032source.*annota3.cc:25:.*:beg:0x\[0-9a-z\]+\r\n"
"\r\n\032\032stopped\r\n"
}
--- 91,105 ----
send_gdb "run\n"
gdb_expect_list "first run until main breakpoint" "$gdb_prompt$" {
! -re "\r\n\032\032post-prompt\r\n"
"Starting program: .*annota3 \r\n"
"\r\n\032\032starting\r\n"
"\r\n\032\032breakpoint 1\r\n"
"\r\n"
! "Breakpoint 1, "
! "\r\n\032\032frame-begin 0 $hex\r\n"
! "main \\(\\) at .*annota3.cc:25\r\n"
! "\r\n\032\032source.*annota3.cc:25:.*:beg:$hex\r\n"
"\r\n\032\032stopped\r\n"
}
--
Nick http://www.inet.net.nz/~nickrob