From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23390 invoked by alias); 8 Aug 2006 10:45:51 -0000 Received: (qmail 23380 invoked by uid 22791); 8 Aug 2006 10:45:50 -0000 X-Spam-Check-By: sourceware.org Received: from bender.bawue.de (HELO bender.bawue.de) (193.7.176.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Aug 2006 10:45:48 +0000 Received: from lagash (mipsfw.mips-uk.com [194.74.144.146]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by bender.bawue.de (Postfix) with ESMTP id 25F18455ED for ; Tue, 8 Aug 2006 12:45:45 +0200 (MEST) Received: from ths by lagash with local (Exim 4.62) (envelope-from ) id 1GAP4P-0004V4-NX for gdb-patches@sources.redhat.com; Tue, 08 Aug 2006 11:44:21 +0100 Date: Tue, 08 Aug 2006 10:45:00 -0000 To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix build failure for MIPS gdb Message-ID: <20060808104421.GD29989@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 From: Thiemo Seufer Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-08/txt/msg00036.txt.bz2 Hello All, the appended patch fixes a type mismatch warning which is handled as error (when using a recent gcc). Thiemo 2006-08-08 Thiemo Seufer * breakpoint.c (update_breakpoints_after_exec): Fix type mismatch. Index: breakpoint.c =================================================================== RCS file: /cvs/src/src/gdb/breakpoint.c,v retrieving revision 1.227 diff -u -p -r1.227 breakpoint.c --- breakpoint.c 2 Jun 2006 03:43:18 -0000 1.227 +++ breakpoint.c 8 Aug 2006 10:16:54 -0000 @@ -1327,7 +1327,7 @@ update_breakpoints_after_exec (void) (b->type == bp_catch_vfork) || (b->type == bp_catch_fork)) { - b->loc->address = (CORE_ADDR) NULL; + b->loc->address = (CORE_ADDR) 0; continue; } @@ -1380,7 +1380,7 @@ update_breakpoints_after_exec (void) unnecessary. A call to breakpoint_re_set_one always recomputes the breakpoint's address from scratch, or deletes it if it can't. So I think this assignment could be deleted without effect. */ - b->loc->address = (CORE_ADDR) NULL; + b->loc->address = (CORE_ADDR) 0; } /* FIXME what about longjmp breakpoints? Re-create them here? */ create_overlay_event_breakpoint ("_ovly_debug_event");