[patch/rfc] Try to get dummy calls working on hpux again
Thu Jun 10 20:23:00 GMT 2004
> 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 and iasq) 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 ...
Debian GNU/Linux Developer, hppa/ia64 ports
More information about the Gdb-patches