From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25424 invoked by alias); 9 Dec 2008 23:28:36 -0000 Received: (qmail 25416 invoked by uid 22791); 9 Dec 2008 23:28:35 -0000 X-Spam-Check-By: sourceware.org Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 09 Dec 2008 23:28:00 +0000 X-IronPort-AV: E=Sophos;i="4.33,743,1220241600"; d="scan'208";a="2810049" Received: from sjcpexch02.citrite.net ([10.216.4.38]) by FTLPIPO01.CITRIX.COM with ESMTP; 09 Dec 2008 18:27:58 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Reconstructing corrupt stacks/patching frame pointers Date: Tue, 09 Dec 2008 23:28:00 -0000 Message-ID: <2108A3A691C70B41B22A8C5ED3725423024DA3FA@sjcpexch02.citrite.net> In-Reply-To: <2108A3A691C70B41B22A8C5ED3725423024DA3F9@sjcpexch02.citrite.net> References: <2108A3A691C70B41B22A8C5ED3725423024DA3F9@sjcpexch02.citrite.net> From: "Eric Cooper" To: 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/msg00030.txt.bz2 Hello, =A0 I have a kernel core dump with a corrupt stack and I can identify the s= tack location that is corrupted and what it should be and I want to write t= he correct frame pointer to the stack so that bt and frame x work. I have t= ried that using the "set" command and it says: =A0 kvm_write not implemented for dead kernels. =A0 I see this code is in kvm-fbsd.c (I am using BSD) and I have hacked aro= und a little bit to allow the write but ultimately it fails on writes to /d= ev/kmem. Is there a reasonable way to do what I want to achieve? Thanks in advance, Eric