From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31135 invoked by alias); 8 Feb 2011 19:53:43 -0000 Received: (qmail 31126 invoked by uid 22791); 8 Feb 2011 19:53:43 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 08 Feb 2011 19:53:38 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p18JrbmV028008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 8 Feb 2011 14:53:37 -0500 Received: from host1.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p18JrZ46029398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 8 Feb 2011 14:53:37 -0500 Received: from host1.dyn.jankratochvil.net (localhost [127.0.0.1]) by host1.dyn.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p18JrZ38015347; Tue, 8 Feb 2011 20:53:35 +0100 Received: (from jkratoch@localhost) by host1.dyn.jankratochvil.net (8.14.4/8.14.4/Submit) id p18JrY7p015346; Tue, 8 Feb 2011 20:53:34 +0100 Date: Tue, 08 Feb 2011 19:53:00 -0000 From: Jan Kratochvil To: dan clark <2clarkd@gmail.com> Cc: gdb@sourceware.org Subject: Re: setting cooked registers desirable feature for coredump analysis but results in error Message-ID: <20110208195334.GA14914@host1.dyn.jankratochvil.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2011-02/txt/msg00047.txt.bz2 Hello Dan, On Mon, 07 Feb 2011 20:01:46 +0100, dan clark wrote: > An interesting debug scenario occurs when either a stack is corrupted the GDB `frame' command supports syntax `frame FRAMEADDR' and `frame FRAMEADDR PCADDR' where FRAMEADDR should be $sp in the caller. See the doc, this is exactly its purpose. It behaved a bit erratically now to me on x86_64. If/as this is not a common task one can use `eu-readelf -n corefile' (eu-readelf is readelf from elfutils) and patch the registers using hexedit, IIRC I was doing to before. Regards, Jan