From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32190 invoked by alias); 1 Mar 2007 21:39:32 -0000 Received: (qmail 32175 invoked by uid 22791); 1 Mar 2007 21:39:29 -0000 X-Spam-Status: No, hits=1.6 required=5.0 tests=AWL,BAYES_05,FORGED_RCVD_HELO,SPF_FAIL,TW_DW X-Spam-Check-By: sourceware.org Received: from sccrmhc11.comcast.net (HELO sccrmhc11.comcast.net) (204.127.200.81) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 Mar 2007 21:39:23 +0000 Received: from gateway.sf.frob.com (c-24-5-197-144.hsd1.ca.comcast.net[24.5.197.144]) by comcast.net (sccrmhc11) with ESMTP id <2007030121391901100kaf9ee>; Thu, 1 Mar 2007 21:39:19 +0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id 4D094357B; Thu, 1 Mar 2007 13:39:18 -0800 (PST) Received: by magilla.sf.frob.com (Postfix, from userid 5281) id E5B9E180065; Thu, 1 Mar 2007 13:39:17 -0800 (PST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Nurdin Premji Cc: Frysk List Subject: Re: Need help with StackAccessors needs to implement findProcInfo and putProcInfo In-Reply-To: Nurdin Premji's message of Thursday, 1 March 2007 16:17:01 -0500 <45E742CD.8000705@redhat.com> X-Zippy-Says: Look into my eyes and try to forget that you have a Macy's charge card! Message-Id: <20070301213917.E5B9E180065@magilla.sf.frob.com> Date: Thu, 01 Mar 2007 21:39:00 -0000 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q1/txt/msg00172.txt.bz2 As I recall, those callbacks are dismally designed. What you'll have to figure out is how to hook back in to the DWARF-format grovelling code in libunwind. It doesn't look good, it's all so poorly structured. I think you'll have to cannibalize some code from the ptrace parts of libunwind, because for no good reason it has parts of the DWARF format header parsing there (and the different ia64 version). libdwfl will take you from a PC to getting the libelf handles open on the ELF files containing the .eh_frame or .debug_frame section to point libunwind at.