From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23820 invoked by alias); 7 Oct 2008 23:11:49 -0000 Received: (qmail 23812 invoked by uid 22791); 7 Oct 2008 23:11:48 -0000 X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 07 Oct 2008 23:11:10 +0000 Received: from tschwinge by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KnLfY-0002Zb-0G; Tue, 07 Oct 2008 19:08:44 -0400 Date: Tue, 07 Oct 2008 23:11:00 -0000 From: Thomas Schwinge To: ams@gnu.org Cc: gdb-patches@sourceware.org, pedro@codesourcery.com Subject: [gnu-nat] PATCH (part of PR #2534) Message-ID: <20081007230843.GF7127@fencepost.gnu.org> References: <200810071838.13276.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dWYAkE0V1FpFQHQ3" Content-Disposition: inline In-Reply-To: X-Homepage: http://www.thomas.schwinge.homeip.net/ User-Agent: Mutt/1.5.11 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00225.txt.bz2 --dWYAkE0V1FpFQHQ3 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gdb-2-BAD_TYPECHECK.patch" Content-length: 972 2008-10-06 Thomas Schwinge * reply_mig_hack.awk: Use the `BAD_TYPECHECK' macro. Index: reply_mig_hack.awk =================================================================== RCS file: /cvs/src/src/gdb/reply_mig_hack.awk,v retrieving revision 1.6 diff -u -p -r1.6 reply_mig_hack.awk --- reply_mig_hack.awk 1 Jan 2008 22:53:12 -0000 1.6 +++ reply_mig_hack.awk 6 Oct 2008 08:42:50 -0000 @@ -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 {"; --dWYAkE0V1FpFQHQ3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 191 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQFI6+v7gfzh735dTTURAqaXAJ47KjITnTTcdJ0ceZBzMBxtTMhRuwCffrO5 RV7s1lwZiNvnr4NitZG394k= =Wnp2 -----END PGP SIGNATURE----- --dWYAkE0V1FpFQHQ3--