From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14124 invoked by alias); 10 Jun 2004 20:23:35 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 14111 invoked from network); 10 Jun 2004 20:23:33 -0000 Received: from unknown (HELO pippin.tausq.org) (64.81.244.94) by sourceware.org with SMTP; 10 Jun 2004 20:23:33 -0000 Received: by pippin.tausq.org (Postfix, from userid 1000) id 4F5BACD29F; Thu, 10 Jun 2004 13:23:37 -0700 (PDT) Date: Thu, 10 Jun 2004 20:23:00 -0000 From: Randolph Chung To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Try to get dummy calls working on hpux again Message-ID: <20040610202337.GH561@tausq.org> Reply-To: Randolph Chung References: <20040610061234.GF561@tausq.org> <40C8B609.5000704@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40C8B609.5000704@gnu.org> X-GPG: for GPG key, see http://www.tausq.org/gpg.txt User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-06/txt/msg00241.txt.bz2 > Can push_dummy_call set these space registers, and the generic pop dummy > frame code restore them? No. Unfortunately it's not possible to use the regular ttrace mechanism to set the pcsqh/pcsqt (aka iasq[0] and iasq[1]) registers.... bascially you need to execute a bit of code: (assuming pcoqh (aka pc) is in r21 and pcsqh is in r22) ldsid (%r22), %r1 mtsp %r1, %sr0 be 0(%sr0, %r21) this branches to (%r22, %r21), thereby setting the space register ... randolph -- Randolph Chung Debian GNU/Linux Developer, hppa/ia64 ports http://www.tausq.org/