This is the mail archive of the gdb-patches@sourceware.org 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]

Re: [RFA] Patch for PR gdb/2477


On Tue, Jul 15, 2008 at 11:52 AM, Ulrich Weigand <uweigand@de.ibm.com> wrote:

> p acp->c2
> $10 = (A *) 0x3ffff
> (gdb) FAIL: gdb.cp/class2.exp: p acp->c2
>
> Any suggestions how to fix this?

Well, since we are just testing absence of gdb error, the test can
be relaxed:

Index: testsuite/gdb.cp/class2.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/class2.exp,v
retrieving revision 1.7
diff -u -p -u -r1.7 class2.exp
--- testsuite/gdb.cp/class2.exp	14 Jul 2008 18:28:57 -0000	1.7
+++ testsuite/gdb.cp/class2.exp	15 Jul 2008 19:01:37 -0000
@@ -123,4 +123,4 @@ gdb_test "p e" "= \{<No data fields>\}"
 gdb_test "set print object on" ""
 gdb_test "p acp" "= \\(C \\*\\) 0x\[a-f0-9\]+"
 gdb_test "p acp->c1" "\\(A \\*\\) 0x0"
-gdb_test "p acp->c2" "\\(A \\*\\) 0xf+"
+gdb_test "p acp->c2" "\\(A \\*\\) 0x\[a-f0-9\]+"


I don't know if that's the correct solution though.


-- 
Paul Pluzhnikov


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