2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
authorThomas Schwinge <tschwinge@gnu.org>
Thu, 9 Oct 2008 16:04:18 +0000 (16:04 +0000)
committerThomas Schwinge <tschwinge@gnu.org>
Thu, 9 Oct 2008 16:04:18 +0000 (16:04 +0000)
* reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.

gdb/ChangeLog
gdb/reply_mig_hack.awk

index aa407cddcdb94ef57664002dc208218cb6a57dc9..dbc3be9d75a29a22db694801b027a424f38c5d6d 100644 (file)
@@ -1,5 +1,7 @@
 2008-10-09  Thomas Schwinge  <tschwinge@gnu.org>
 
+       * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
+
        * MAINTAINERS (Write After Approval): Add myself.
 
 2008-10-09  Pedro Alves  <pedro@codesourcery.com>
index a201d06299a9756a157df19906f2a76cac39fb86..4d8f6c1ddb806a51b521da4d126fbe65e95abbf6 100644 (file)
@@ -101,7 +101,7 @@ parse_phase == 5 && /^#if[ \t]TypeCheck/ {
   # 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    && ! BAD_TYPECHECK(&In0P->" arg_type_code_name[0] ", &" arg_check_name[0] ")";
   print "\t    && In0P->" arg_name[0] " != 0)";
   print "\t  /* Error return, only the error code argument is passed.  */";
   print "\t  {";
This page took 0.033805 seconds and 4 git commands to generate.