This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Another optional underscore in testsuite
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 29 Jan 2003 17:15:01 -0800
- Subject: [RFA] Another optional underscore in testsuite
- Organization: Red Hat, Inc.
Again, funny that nobody's ever complained about it before:
some targets must have failed this test because they prepend
an underscore to user-defined symbols.
2003-01-29 Michael Snyder <msnyder@redhat.com>
* gdb.base/maint.exp: Allow for leading underscore in symbol.
Index: maint.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/maint.exp,v
retrieving revision 1.17
diff -p -r1.17 maint.exp
*** maint.exp 24 Dec 2002 04:03:46 -0000 1.17
--- maint.exp 30 Jan 2003 00:37:33 -0000
*************** gdb_expect {
*** 282,288 ****
{
send_gdb "shell grep factorial msymbols_output\n"
gdb_expect {
! -re "\\\[ *$decimal\\\] T\[ \t\]+$hex factorial.*$gdb_prompt $"\
{ pass "maint print msymbols" }
-re ".*$gdb_prompt $" { fail "maint print msymbols" }
timeout { fail "(timeout) maint print msymbols" }
--- 282,288 ----
{
send_gdb "shell grep factorial msymbols_output\n"
gdb_expect {
! -re "\\\[ *$decimal\\\] T\[ \t\]+$hex (_|)factorial.*$gdb_prompt $"\
{ pass "maint print msymbols" }
-re ".*$gdb_prompt $" { fail "maint print msymbols" }
timeout { fail "(timeout) maint print msymbols" }