This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Fix to testsuite
- To: Jim Kingdon <kingdon@cyclic.com>
- Subject: Fix to testsuite
- From: Elena Zannoni <ezannoni@cygnus.com>
- Date: Mon, 12 Jul 1999 14:53:07 -0400 (EDT)
- Cc: gdb-patches@sourceware.cygnus.com
- References: <199907121837.OAA29261@harvey.cyclic.com>
Thanks Jim.
I am in the process of looking at these test failures on Linux.
I think your patch is OK. I'll try it.
Probably there is no need for filing any paperwork for this small patch.
Elena Zannoni
Cygnus Solutions
Jim Kingdon writes:
> I needed the following patch to successfully run a few of the tests
> from the GDB testsuite on Linux (Red Hat Linux 5.0, specifically).
> This is GDB from anoncvs.cygnus.com from within the last day or few.
>
> I don't think it is an issue for this particular patch, but do you
> have paperwork on file from Red Hat? If not, I'll need to get going
> on that.
>
> 1999-07-12 Jim Kingdon <http://developer.redhat.com>
>
> * gdb.base/annota1.exp: If printf has debug info, deal with it.
>
> Index: gdb.base/annota1.exp
> ===================================================================
> RCS file: /cvs/gdb/gdb/gdb/testsuite/gdb.base/annota1.exp,v
> retrieving revision 1.1.1.4
> diff -c -r1.1.1.4 annota1.exp
> *** annota1.exp 1999/06/28 16:02:39 1.1.1.4
> --- annota1.exp 1999/07/12 18:23:43
> ***************
> *** 228,234 ****
> #
> send_gdb "continue\n"
> gdb_expect {
> ! -re "\r\n\032\032post-prompt\r\nContinuing.\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032breakpoint 3\r\n\r\nBreakpoint 3, \r\n\032\032frame-begin 0 $hex\r\n\r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-where\r\n from.*\032\032frame-end\r\n\r\n\032\032stopped\r\n$gdb_prompt$" \
> { pass "continue to printf" }
> -re ".*$gdb_prompt$" { fail "continue to printf" }
> timeout { fail "continue to printf (timeout)" }
> --- 228,234 ----
> #
> send_gdb "continue\n"
> gdb_expect {
> ! -re "\r\n\032\032post-prompt\r\nContinuing.\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032breakpoint 3\r\n\r\nBreakpoint 3, \r\n\032\032frame-begin 0 $hex\r\n\r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n .*\032\032frame-end\r\n\r\n\032\032stopped\r\n$gdb_prompt$" \
> { pass "continue to printf" }
> -re ".*$gdb_prompt$" { fail "continue to printf" }
> timeout { fail "continue to printf (timeout)" }
> ***************
> *** 242,248 ****
> #
> send_gdb "backtrace\n"
> gdb_expect {
> ! -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0 \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-where\r\n from.*\r\n\032\032frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1 \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n${srcdir}/${subdir}/${srcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n$gdb_prompt$" \
> { pass "bactrace from shlibrary" }
> -re ".*$gdb_prompt$" { fail "backtrace from shlibrary" }
> timeout { fail "backtrace from shlibrary (timeout)" }
> --- 242,248 ----
> #
> send_gdb "backtrace\n"
> gdb_expect {
> ! -re "\r\n\032\032post-prompt\r\n\r\n\032\032frame-begin 0 $hex\r\n.0 \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nprintf\r\n\032\032frame-args\r\n \\(.*\r\n\032\032frame-end\r\n\r\n\032\032frame-begin 1 $hex\r\n.1 \r\n\032\032frame-address\r\n$hex\r\n\032\032frame-address-end\r\n in \r\n\032\032frame-function-name\r\nmain\r\n\032\032frame-args\r\n \\(\\)\r\n\032\032frame-source-begin\r\n at \r\n\032\032frame-source-file\r\n${srcdir}/${subdir}/${srcfile}\r\n\032\032frame-source-file-end\r\n:\r\n\032\032frame-source-line\r\n.*\r\n\032\032frame-source-end\r\n\r\n\r\n\032\032frame-end\r\n$gdb_prompt$" \
> { pass "bactrace from shlibrary" }
> -re ".*$gdb_prompt$" { fail "backtrace from shlibrary" }
> timeout { fail "backtrace from shlibrary (timeout)" }
>