[commit] fix syntax errors in hpread.c

Joel Brobecker brobecker@adacore.com
Thu Jan 4 07:21:00 GMT 2007


Hello,

The gods of automated nightly builds whispered to me in my sleep that
hpread.c failed to build last night. There are indeed a couple of
syntax errors that slipped through the the last commit. Fixed thusly.

I can't test this myself because it looks like this code handles C++
objects. I don't have a C++ compiler available to me on HP/UX. The
change looks reasonably obvious, so hopefully it is fine.

2007-01-04  Joel Brobecker  <brobecker@adacore.com>

        * hpread.c (hpread_type_lookup): Fix compilation failure.

Checked in.

-- 
Joel
-------------- next part --------------
Index: hpread.c
===================================================================
RCS file: /cvs/src/src/gdb/hpread.c,v
retrieving revision 1.59
diff -u -p -r1.59 hpread.c
--- hpread.c	3 Jan 2007 18:05:43 -0000	1.59
+++ hpread.c	4 Jan 2007 07:12:11 -0000
@@ -4871,10 +4871,9 @@ hpread_type_lookup (dnttpointer hp_type,
 	struct type *ptrmemtype;
 	struct type *class_type;
 	struct type *memtype;
-	memtype = hpread_type_lookup (dn_bufp->dptrmem.memtype,
-				      objfile),
-	  class_type = hpread_type_lookup (dn_bufp->dptrmem.pointsto,
-					   objfile),
+
+	memtype = hpread_type_lookup (dn_bufp->dptrmem.memtype, objfile);
+	class_type = hpread_type_lookup (dn_bufp->dptrmem.pointsto, objfile);
 	return lookup_memberptr_type (memtype, class_type);
       }
       break;


More information about the Gdb-patches mailing list