This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] Underscore tweak (old HP test)
- From: Michael Snyder <msnyder at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Cc: ezannoni at redhat dot com, fnasser at redhat dot com
- Date: Wed, 29 Jan 2003 15:41:53 -0800
- Subject: [RFA] Underscore tweak (old HP test)
- Organization: Red Hat, Inc.
Apparently no one has complained about this in the last 3 years, but
some targets do add a leading underscore to user-defined labels.
Fernando?
2003-01-29 Michael Snyder <msnyder@redhat.com>
* gdb.base/display.exp: Allow for leading underscore in symbol.
Index: gdb.base/display.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/display.exp,v
retrieving revision 1.6
diff -p -r1.6 display.exp
*** gdb.base/display.exp 20 Jan 2003 15:40:07 -0000 1.6
--- gdb.base/display.exp 29 Jan 2003 23:34:33 -0000
*************** if [istarget "hppa*-hp-hpux*"] {
*** 197,203 ****
gdb_test "print/0 j" ".*Item count other than 1 is meaningless.*" "print/0 j"
gdb_test "print/s sum" ".*Format letter.*is meaningless.*" " no s"
gdb_test "print/i sum" ".*Format letter.*is meaningless.*.*" "no i"
! gdb_test "print/a &sum" ".*= $hex.*<sum>.*"
# If the constant below is larger than the length of main, then
# this test will (incorrectly) fail. So use a small number.
gdb_test "print/a main+4" ".*= $hex.*<.*>.*"
--- 197,203 ----
gdb_test "print/0 j" ".*Item count other than 1 is meaningless.*" "print/0 j"
gdb_test "print/s sum" ".*Format letter.*is meaningless.*" " no s"
gdb_test "print/i sum" ".*Format letter.*is meaningless.*.*" "no i"
! gdb_test "print/a &sum" ".*= $hex.*<(_|)sum>.*"
# If the constant below is larger than the length of main, then
# this test will (incorrectly) fail. So use a small number.
gdb_test "print/a main+4" ".*= $hex.*<.*>.*"