This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit] Fix typo (Re: [rfc] Work around invalid G++ DWARF for unnamed aggregates)
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 6 Apr 2010 14:49:44 +0200 (CEST)
- Subject: [commit] Fix typo (Re: [rfc] Work around invalid G++ DWARF for unnamed aggregates)
> * gdb.cp/inherit.exp (test_ptype_si): XFAIL test for GCC versions
> that do not provide the tagless_struct type name at all.
> (test_print_anon_union): Do not check value of uninitialized
> union member. Do not use cp_test_ptype_class, so we can accept
> "long" as well as "long int".
> + set re_class "(class $re_tag \{${ws}public:|struct $re_tag\{)"
The re_class string is missing a space in the "struct" case, which I
just noticed when testing against an old GCC version.
Fixed by the following patch. Tested on powerpc64-linux, committed
to mainline.
Bye,
Ulrich
ChangeLog:
* gdb.cp/inherit.exp (test_print_anon_union): Fix re_class pattern.
Index: gdb/testsuite/gdb.cp/inherit.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.cp/inherit.exp,v
retrieving revision 1.16
diff -u -p -r1.16 inherit.exp
--- gdb/testsuite/gdb.cp/inherit.exp 26 Mar 2010 18:05:46 -0000 1.16
+++ gdb/testsuite/gdb.cp/inherit.exp 6 Apr 2010 12:40:45 -0000
@@ -502,7 +502,7 @@ proc test_print_anon_union {} {
set name "print type of anonymous union"
set re_tag "class_with_anon_union"
- set re_class "(class $re_tag \{${ws}public:|struct $re_tag\{)"
+ set re_class "(class $re_tag \{${ws}public:|struct $re_tag \{)"
set re_fields "int one;${ws}union \{${ws}int a;${ws}long( int)? b;${ws}\};"
gdb_test_multiple "ptype g_anon_union" $name {
-re "type = $re_class${ws}$re_fields$nl\}$nl$gdb_prompt $" {
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com