This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch/rfc] Try to get dummy calls working on hpux again
- From: Randolph Chung <randolph at tausq dot org>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 10 Jun 2004 13:23:37 -0700
- Subject: Re: [patch/rfc] Try to get dummy calls working on hpux again
- References: <20040610061234.GF561@tausq.org> <40C8B609.5000704@gnu.org>
- Reply-to: Randolph Chung <randolph at tausq dot org>
> 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/