From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31769 invoked by alias); 18 Jun 2007 12:01:24 -0000 Received: (qmail 31756 invoked by uid 22791); 18 Jun 2007 12:01:20 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.237) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 18 Jun 2007 12:01:18 +0000 Received: by nz-out-0506.google.com with SMTP id s1so1140182nze for ; Mon, 18 Jun 2007 05:01:17 -0700 (PDT) Received: by 10.115.106.7 with SMTP id i7mr6161738wam.1182168076793; Mon, 18 Jun 2007 05:01:16 -0700 (PDT) Received: by 10.114.166.13 with HTTP; Mon, 18 Jun 2007 05:01:16 -0700 (PDT) Message-ID: <656b5870706180501o149dd531i7ad2fbde8ada4f90@mail.gmail.com> Date: Mon, 18 Jun 2007 12:01:00 -0000 From: Indira To: "Eli Zaretskii" Subject: Re: Setting registers Cc: dave.korn@artimi.com, gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <656b5870706130328v7121cdcdt18c4b59baebc0865@mail.gmail.com> <018d01c7adc0$f10ff770$2e08a8c0@CAM.ARTIMI.COM> <656b5870706150555k47cf81c6w393d14502018b80b@mail.gmail.com> 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/msg00138.txt.bz2 I just want to set the esp, eip and ebp registers and print backtrace. Can i do so while debugging a core file? On 6/15/07, Eli Zaretskii wrote: > > Date: Fri, 15 Jun 2007 18:25:53 +0530 > > From: Indira > > Cc: gdb@sourceware.org > > > > Yes I am debuggin a core file. We cant set registers while debuggin a core file? > > No, you can't. The program is dead, all you have is the last snapshot > of its memory. Even if you could set registers (and other variables), > it would be of no practical use, since you cannot run the program. > All you can do is examine its memory and call stack. > -- Indu :) Smile.... & Make others Smile :)