From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30256 invoked by alias); 23 Nov 2010 21:50:39 -0000 Received: (qmail 30246 invoked by uid 22791); 23 Nov 2010 21:50:38 -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 almaty.radix50.net (HELO almaty.kz-easy.com) (85.214.25.173) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 23 Nov 2010 21:50:24 +0000 Received: from alatau.radix50.net (dslb-088-066-122-229.pools.arcor-ip.net [88.66.122.229]) (authenticated bits=0) by almaty.kz-easy.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id oANLoGNI009735 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 23 Nov 2010 22:50:18 +0100 Received: from medeu.radix50.net (root@medeu [192.168.0.3]) by alatau.radix50.net (8.14.3/8.14.3/Debian-5) with ESMTP id oANLo6wV014400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 23 Nov 2010 22:50:06 +0100 Received: from medeu.radix50.net (ibr@localhost [127.0.0.1]) by medeu.radix50.net (8.14.3/8.14.3/Debian-5) with ESMTP id oANLo6bi012553 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 23 Nov 2010 22:50:06 +0100 Received: (from ibr@localhost) by medeu.radix50.net (8.14.3/8.14.3/Submit) id oANLo5Td012552 for gdb@sourceware.org; Tue, 23 Nov 2010 22:50:05 +0100 Date: Tue, 23 Nov 2010 21:50:00 -0000 From: Baurzhan Ismagulov To: gdb@sourceware.org Subject: Re: How do I patch my binary Message-ID: <20101123215005.GG5574@radix50.net> Mail-Followup-To: gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes 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/msg00090.txt.bz2 On Tue, Nov 23, 2010 at 04:31:22PM -0500, Marc Khouzam wrote: > My hope was that I could modify the source code (outside of GDB), recompile > the binary and have GDB load and use the new binary, without having to restart > the program. I couldn't get this to work (using 'set write on' and reloading > the new binary). I don't think you can. Which platform? With kind regards, -- Baurzhan Ismagulov http://www.kz-easy.com/