From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5995 invoked by alias); 15 Jun 2007 15:24:56 -0000 Received: (qmail 5877 invoked by uid 22791); 15 Jun 2007 15:24:55 -0000 X-Spam-Check-By: sourceware.org Received: from exprod8og55.obsmtp.com (HELO exprod8og55.obsmtp.com) (64.18.3.92) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 15 Jun 2007 15:24:52 +0000 Received: from source ([12.110.134.31]) by exprod8ob55.obsmtp.com ([64.18.7.12]) with SMTP; Fri, 15 Jun 2007 08:23:29 PDT Received: from pkoning.equallogic.com.equallogic.com ([172.25.202.120]) by M31.equallogic.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 15 Jun 2007 11:21:39 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18034.44673.476267.842310@pkoning.equallogic.com> Date: Fri, 15 Jun 2007 15:24:00 -0000 From: Paul Koning To: drow@false.org Cc: eliz@gnu.org, yoursindu@gmail.com, dave.korn@artimi.com, gdb@sourceware.org Subject: Re: Setting registers References: <656b5870706130328v7121cdcdt18c4b59baebc0865@mail.gmail.com> <018d01c7adc0$f10ff770$2e08a8c0@CAM.ARTIMI.COM> <656b5870706150555k47cf81c6w393d14502018b80b@mail.gmail.com> <18034.42274.624904.560657@pkoning.equallogic.com> <20070615144855.GA10941@caradoc.them.org> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid 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: 2007-06/txt/msg00128.txt.bz2 >>>>> "Daniel" == Daniel Jacobowitz writes: Daniel> On Fri, Jun 15, 2007 at 10:41:38AM -0400, Paul Koning wrote: >> Sometimes it would be useful to be able to. If the stack is >> corrupt, or the return address (for processor types that have such >> a thing) and you can figure out the correct values, it would be >> very handy to be able to tell gdb "here is the right value" and >> let it use that for subsequent analysis. Daniel> We do get requests for this so frequently that I'm tempted to Daniel> allow modifiable registers... memory, though, would be hard. Not really, you'd just have to allow writing to the corefile. I think you'd want to disable that by default -- otherwise a slip of the finger would mess up your carefully collected data. But after an explicit enable it could be done. And it's necessary if you're trying to change a register for an inner frame. paul