diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2008-10-09 16:04:18 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2008-10-09 16:04:18 +0000 |
commit | 202498082937c52fe713b80895fb05fee42e8427 (patch) | |
tree | d5d449a18e3b04f935d607e7f74ca3c88e6f4622 /gdb | |
parent | 9ca12bbf860d546dfbf77726be2ef6b9ef417f18 (diff) | |
download | gdb-202498082937c52fe713b80895fb05fee42e8427.zip gdb-202498082937c52fe713b80895fb05fee42e8427.tar.gz gdb-202498082937c52fe713b80895fb05fee42e8427.tar.bz2 |
2008-10-09 Thomas Schwinge <tschwinge@gnu.org>
* reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/reply_mig_hack.awk | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aa407cd..dbc3be9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> diff --git a/gdb/reply_mig_hack.awk b/gdb/reply_mig_hack.awk index a201d06..4d8f6c1 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 {"; |