Samuel Thibault, le Wed 13 Aug 2008 02:51:23 +0100, a écrit :
> Samuel Thibault, le Tue 12 Aug 2008 16:23:35 +0100, a écrit :
> > gdb currently FTBFS on hurd-i386 because of an improper cast, here is a
> > patch.
> 
> Oops, I didn't know that gdb was doing some mig stuff itself, that patch
> is not sufficient, I'll complete it.

Here is a fixed patch.

Samuel

--- gdb-6.8/gdb/reply_mig_hack.awk.orig 2008-08-13 02:07:53.000000000 +0100
+++ gdb-6.8/gdb/reply_mig_hack.awk      2008-08-13 02:08:30.000000000 +0100
@@ -101,7 +101,7 @@
   # structure that we want to check for.
   print "\tif (In0P->Head.msgh_size == sizeof (Reply)";
   print "\t    && ! (In0P->Head.msgh_bits & MACH_MSGH_BITS_COMPLEX)";
-  print "\t    && *(int *)&In0P->" arg_type_code_name[0] " == *(int *)&" 
arg_check_name[0];
+  print "\t    && !memcmp (&In0P->" arg_type_code_name[0] ", &" 
arg_check_name[0] ", sizeof(int))";
   print "\t    && In0P->" arg_name[0] " != 0)";
   print "\t  /* Error return, only the error code argument is passed.  */";
   print "\t  {";



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to