This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Another optional underscore in testsuite


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" }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]