From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22159 invoked by alias); 2 Dec 2004 14:45:12 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 22118 invoked from network); 2 Dec 2004 14:45:03 -0000 Received: from unknown (HELO sccrmhc12.comcast.net) (204.127.202.56) by sourceware.org with SMTP; 2 Dec 2004 14:45:03 -0000 Received: from [10.0.1.2] (h000393256f12.ne.client2.attbi.com[24.61.199.96]) by comcast.net (sccrmhc12) with SMTP id <2004120214445601200bun3je>; Thu, 2 Dec 2004 14:45:02 +0000 User-Agent: Microsoft-Entourage/11.1.0.040913 Date: Thu, 02 Dec 2004 14:45:00 -0000 Subject: Re: [RFA] initialize err variable in load_section_callback() From: Paul Schlie To: Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-SW-Source: 2004-12/txt/msg00042.txt.bz2 Might it be possible to "OK" the check in of Theodore Roth's load_section_callback() bug-fix patch into both 6.3 and head, that he proposed earlier in October? (as otherwise GDB can't write/update the memory contents of affected platforms/targets). http://sources.redhat.com/ml/gdb-patches/2004-10/msg00324.html (This is likely the most reliable fix for this problem, as without properly initializing the err variable introduced in this function, it's initial value is indeterminate, and otherwise fragilely relies on subsequent function calls signaling both success and failure, although traditionally only errors are typically signaled though this means.)