From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23763 invoked by alias); 1 Mar 2007 21:17:13 -0000 Received: (qmail 23755 invoked by uid 22791); 1 Mar 2007 21:17:12 -0000 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 Mar 2007 21:17:04 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l21LH2dj027445 for ; Thu, 1 Mar 2007 16:17:02 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l21LH15v024999 for ; Thu, 1 Mar 2007 16:17:01 -0500 Received: from [172.16.14.160] (tow.toronto.redhat.com [172.16.14.160]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l21LH1xi008675 for ; Thu, 1 Mar 2007 16:17:01 -0500 Message-ID: <45E742CD.8000705@redhat.com> Date: Thu, 01 Mar 2007 21:17:00 -0000 From: Nurdin Premji User-Agent: Thunderbird 1.5.0.9 (X11/20070212) MIME-Version: 1.0 To: Frysk List Subject: Need help with StackAccessors needs to implement findProcInfo and putProcInfo Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00171.txt.bz2 On the npremji-libunwind-20070228-branch I've copied over the logic for the accessReg and accessMem accessor methods into StackAccessors. I have some work on the getProcName method using dwfl_addrname. I now need to create logic for findProcInfo and putProcInfo methods. I will not be able to use any of the libunwind UPT ptrace accessor methods as the PtraceAccessors class uses a proxy address space so it can call other accessor methods. The problem with this is that it seems as though findProcInfo calls accessMem, which won't work because it isn't being called in the thread that did the ptrace attach. In short I need to implement findProcInfo and putProcInfo without relying on the UPT methods of the same name and I'm not sure what is involved in this.