diff options
author | tschwinge <tschwinge> | 2008-10-09 16:04:17 +0000 |
---|---|---|
committer | tschwinge <tschwinge> | 2008-10-09 16:04:17 +0000 |
commit | 245cfeab09a9c76f238d48ba17f3f4c170dabbe2 (patch) | |
tree | e0384c6eb129ddea524e442b7e2c52b997b9ea9f /gdb/reply_mig_hack.awk | |
parent | eecf08f906110cc019a333aad9e7c1dc5853b1e2 (diff) | |
download | gdb-245cfeab09a9c76f238d48ba17f3f4c170dabbe2.tar.gz |
2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
* reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
Diffstat (limited to 'gdb/reply_mig_hack.awk')
-rw-r--r-- | gdb/reply_mig_hack.awk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk index a201d06299a..4d8f6c1ddb8 100644 --- a/gdb/reply_mig_hack.awk +++ b/gdb/reply_mig_hack.awk @@ -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 {"; |