From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16560 invoked by alias); 23 Nov 2007 17:14:20 -0000 Received: (qmail 16553 invoked by uid 22791); 23 Nov 2007 17:14:19 -0000 X-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS,WLS_URI_OPT_0 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; Fri, 23 Nov 2007 17:14:15 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id lANHECBh025612; Fri, 23 Nov 2007 12:14:12 -0500 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lANHEBXZ032076; Fri, 23 Nov 2007 12:14:11 -0500 Received: from localhost.localdomain (vpn-14-50.rdu.redhat.com [10.11.14.50]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lANHEAW5028729; Fri, 23 Nov 2007 12:14:11 -0500 Message-ID: <47470A62.3070906@redhat.com> Date: Fri, 23 Nov 2007 17:14:00 -0000 From: Rick Moseley User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Mark Wielaard CC: frysk@sourceware.org Subject: Re: Quick pc hack for exe loading References: <1195817730.2981.21.camel@dijkstra.wildebeest.org> In-Reply-To: <1195817730.2981.21.camel@dijkstra.wildebeest.org> 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-q4/txt/msg00172.txt.bz2 Hi Mark, Cool. That ought to be fine. Rick Mark Wielaard wrote: > Hi Rick, > > I wanted to test some libunwind lookup changes I made locally and the > exe target is nice for that since it is so simple. The attached patch > sets up the PC value and makes it possible to see where the exe would > start: > > (fhpd) load /bin/bash > Loaded executable file: /bin/bash > (fhpd) where > [0.0] > DebugInfoStackFactory.printStackTrace() numberOfFrames 0 > #0 0x0000000000419150 in _start () from /bin/bash > > It still cannot actually do the other way around though: > > (fhpd) print _start > [0.0] > Error: Object _start was not found > > Haven't looked into why that was since I was only interested in the > stack thing. > > 2007-11-23 Mark Wielaard > > * LinuxExeTask.java (bankBuffers): New final field. > (LinuxExeTask): Setup bankBuffers and explicitly set pc. > (sendrecRegisterBanks): Use cached bankBuffers. > > It is a bit of a hack (as the comment explains), but it seems to work > great and all tests still pass with this applied. Feel free to rip it > out and completely replace with a real, less hacky, solution though. > > Cheers, > > Mark >