From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23785 invoked by alias); 23 Nov 2007 17:30:57 -0000 Received: (qmail 23778 invoked by uid 22791); 23 Nov 2007 17:30:57 -0000 X-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,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:30:53 +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 lANHUoBr001324; Fri, 23 Nov 2007 12:30:50 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lANHUo4V006100; Fri, 23 Nov 2007 12:30:50 -0500 Received: from [127.0.0.1] (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lANHUnaF008804; Fri, 23 Nov 2007 12:30:49 -0500 Message-ID: <47470E4C.5040307@redhat.com> Date: Fri, 23 Nov 2007 17:30:00 -0000 From: Andrew Cagney User-Agent: Thunderbird 1.5.0.12 (X11/20070530) MIME-Version: 1.0 To: Rick Moseley , Mark Wielaard CC: frysk@sourceware.org Subject: Re: Quick pc hack for exe loading References: <1195817730.2981.21.camel@dijkstra.wildebeest.org> <47470A62.3070906@redhat.com> In-Reply-To: <47470A62.3070906@redhat.com> 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/msg00173.txt.bz2 Rick Moseley wrote: > Hi Mark, > > Cool. That ought to be fine. > Yea, except this bit: + this.bankBuffers = sendrecRegisterBuffersFIXME(); the word "FIXME" should be a hint. Andrew > 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 >> >