From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30652 invoked by alias); 10 Jun 2004 20:42:52 -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 30645 invoked from network); 10 Jun 2004 20:42:51 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 10 Jun 2004 20:42:51 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i5AKgpi7017942 for ; Thu, 10 Jun 2004 16:42:51 -0400 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5AKgm026912; Thu, 10 Jun 2004 16:42:48 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E4B262B9D; Thu, 10 Jun 2004 16:42:42 -0400 (EDT) Message-ID: <40C8C7C2.5060100@gnu.org> Date: Thu, 10 Jun 2004 20:42:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040217 MIME-Version: 1.0 To: Randolph Chung Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Try to get dummy calls working on hpux again References: <20040610061234.GF561@tausq.org> <40C8B609.5000704@gnu.org> <20040610202337.GH561@tausq.org> In-Reply-To: <20040610202337.GH561@tausq.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg00242.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 ... Sigh (the relevant code will need comments explaining this). Are you absolutely positively certain this is true (for both HP/UX 10.20 / 11.xx)? :-) Also that sequence in the call path, the return path, or both? Having the dummy-code containing a non-trivial sequence of instructions opens up the problem of needing to be able to step through them. Issues similar to the grief I've been going through with signal trampolines. Andrew