[RFC/RFA/hppa] unwind pc in bottom frame using correct register

Randolph Chung randolph@tausq.org
Wed Dec 8 04:33:00 GMT 2004


> Anyway, the problems Joel sees can be fixed by explicitly setting
> "flags" to zero in all unwound frames.  This somehow seems the correct
> approach since this "flags" register is only meaningful in the
> sentinel frame.  This is implemented by the attached patch (wich will
> no longer apply after Randolph's recent change, but you get the idea).

hrm, something is broken. on hppa64-hp-hpux11.11 this is causing a lot
of unwinding failures. the hpux unwind_pc method is getting flags that
have the magic "2" bit set, so it gets the pc from 31 instead of the
pcoqh register.

i don't quite yet understand why this is happening. if i do "print
$flags" on frame #0 the value seems reasonable.

randolph
-- 
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/



More information about the Gdb-patches mailing list