This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Patch for gdb build on hppa hp-ux
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gdb-patches at gcc dot gnu dot org
- Date: Fri, 6 Apr 2007 14:53:09 -0700 (PDT)
- Subject: Patch for gdb build on hppa hp-ux
- Reply-to: sje at cup dot hp dot com
This patch fixes a build problem on hppa hp-ux. This is the first of
two patches I have that allow me to build gdb on hppa hp-ux. The build
has been broken (for me at least) for some time. This is the only HP
specific change that was needed. Tested by building gdb on hppa hp-ux.
OK to checkin?
Steve Ellcey
sje@cup.hp.com
2007-04-06 Steve Ellcey <sje@cup.hp.com>
* hpread.c (hpread_get_next_skip_over_anon_unions): Fix
CHECK_TYPEDEF usage.
Index: hpread.c
===================================================================
RCS file: /cvs/src/src/gdb/hpread.c,v
retrieving revision 1.62
diff -p -u -r1.62 hpread.c
--- hpread.c 9 Jan 2007 17:58:51 -0000 1.62
+++ hpread.c 6 Apr 2007 21:47:21 -0000
@@ -6316,7 +6316,7 @@ hpread_get_next_skip_over_anon_unions (i
/* Get type of item we're looking at now; recursively processes the types
of these intermediate items we skip over, so they aren't lost. */
anon_type = hpread_type_lookup ((*fieldp)->dfield.type, objfile);
- anon_type = CHECK_TYPEDEF (anon_type);
+ CHECK_TYPEDEF (anon_type);
bitoffset = (*fieldp)->dfield.bitoffset;
name = VT (objfile) + (*fieldp)->dfield.name;
/* First skip over one item to avoid stack death on recursion */