From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2420 invoked by alias); 30 Nov 2010 23:54:11 -0000 Received: (qmail 2411 invoked by uid 22791); 30 Nov 2010 23:54:10 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 30 Nov 2010 23:54:06 +0000 Received: (qmail 26279 invoked from network); 30 Nov 2010 23:54:04 -0000 Received: from unknown (HELO macbook-2.local) (stan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 30 Nov 2010 23:54:04 -0000 Message-ID: <4CF58E9B.9060401@codesourcery.com> Date: Tue, 30 Nov 2010 23:54:00 -0000 From: Stan Shebs User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Re: How do I patch my binary References: <20101123215005.GG5574@radix50.net> ,<20101125105140.GA2367@host0.dyn.jankratochvil.net> <4C9D95B9-3EBF-45F3-9B4A-A706D786FD84@elis.ugent.be> In-Reply-To: <4C9D95B9-3EBF-45F3-9B4A-A706D786FD84@elis.ugent.be> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-11/txt/msg00137.txt.bz2 On 11/25/10 6:42 AM, Jonas Maebe wrote: > > On 25 Nov 2010, at 15:16, Marc Khouzam wrote: > >> Here is the XCode doc about Fix and Continue which explains it nicely >> for a user: >> http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/XcodeDebugging/230-Modifying_Running_Code/modifying_running_code.html >> > > Note that in the mean time that functionality has been deprecated by > Apple, and may even have already been completely removed from the > latest Xcode releases. It also never worked that well (hence the > deprecation, I guess). One of the critical aspects to making it work was that all references were dynamic and indirected, so that everything could end up in different locations after the fix and yet still be found when you resumed execution. But that meant special compiler flags, and more differences between "development" and "production" code. (I note the contemporaneous discussion about compiler options for Linux.) In the generic Linux/ELF/ABI etc context, I think it's going to be even harder to make it work reliably enough for users to trust. Certainly it was disappointing at Apple, to have put forth the coordinated effort and then not seen much uptake. Stan