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: [commit] Delay reading of struct members


On Wed, Sep 08, 2010 at 03:24:59PM -0400, Daniel Jacobowitz wrote:
> I've tested this on x86_64-linux and arm-eabi, using GCC 4.4, GCC 4.5,
> and RealView; I also tested it on hand-modified GCC output to trigger
> the template argument support.  No regressions; committed to HEAD.

At the last minute I broke the test for RealView; just a cosmetic
difference (something GCC doesn't support, but should).

-- 
Daniel Jacobowitz
CodeSourcery

2010-09-08  Daniel Jacobowitz  <dan@codesourcery.com>

	* gdb.cp/templates.exp (test_template_args): Allow "struct".

Index: gdb.cp/templates.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/templates.exp,v
retrieving revision 1.27
diff -u -p -r1.27 templates.exp
--- gdb.cp/templates.exp	8 Sep 2010 19:09:43 -0000	1.27
+++ gdb.cp/templates.exp	8 Sep 2010 23:41:09 -0000
@@ -200,10 +200,10 @@ proc test_template_args {} {
 
     set empty_re "Empty *<void *\\(FunctionArg *<int>\\)>"
     gdb_test "ptype empty" \
-	"type = class $empty_re {.*<no data fields>.*}"
+	"type = (struct|class) $empty_re {.*<no data fields>.*}"
 
     gdb_test "ptype arg" \
-	"type = class FunctionArg<int> {.*int method\\($empty_re \\&\\);.*}"
+	"type = (struct|class) FunctionArg<int> {.*int method\\($empty_re \\&\\);.*}"
 }
 
 proc do_tests {} {


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