From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 548 invoked by alias); 11 Dec 2008 18:05:25 -0000 Received: (qmail 539 invoked by uid 22791); 11 Dec 2008 18:05:24 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-1.vmware.com (HELO smtp-outbound-1.vmware.com) (65.115.85.69) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Dec 2008 18:04:49 +0000 Received: from mailhost5.vmware.com (mailhost5.vmware.com [10.16.68.131]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 8747121005; Thu, 11 Dec 2008 10:04:47 -0800 (PST) Received: from [10.20.92.151] (promb-2s-dhcp151.eng.vmware.com [10.20.92.151]) by mailhost5.vmware.com (Postfix) with ESMTP id 7DF8EDC1C5; Thu, 11 Dec 2008 10:04:47 -0800 (PST) Message-ID: <4941555D.6020205@vmware.com> Date: Thu, 11 Dec 2008 18:05:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: Michael Snyder , Eric Cooper , "gdb@sourceware.org" Subject: Re: Reconstructing corrupt stacks/patching frame pointers References: <2108A3A691C70B41B22A8C5ED3725423024DA3F9@sjcpexch02.citrite.net> <2108A3A691C70B41B22A8C5ED3725423024DA3FA@sjcpexch02.citrite.net> <49404DD0.60602@vmware.com> <20081211023236.GA17606@caradoc.them.org> In-Reply-To: <20081211023236.GA17606@caradoc.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: 2008-12/txt/msg00037.txt.bz2 Daniel Jacobowitz wrote: > On Wed, Dec 10, 2008 at 03:16:32PM -0800, Michael Snyder wrote: >> I presume this is a core dump from a Free BSD system. >> >> Unfortunately, for the most part, the folks here in the gdb >> maintainer group don't play a very active role in maintaining >> the bits for gdb on BSD. Somebody may correct me if I'm wrong... >> >> You may need to approach the Free BSD community for this. > > Well, Mark Kettenis does. But the problem is general to all core > files; I've seen requests to change the $sp in Linux corefiles too. It might be possible with a normal elf core file. I know there is a mode that allows gdb to treat a corefile as read-write. Lemme see... here it is: "help set write". Don't know whether it works for registers... Don't know whether it works with fbsd kgdb...