[offbyone] Eliminate pop method

Andrew Cagney ac131313@redhat.com
Fri Mar 7 14:35:00 GMT 2003


(Hopefully this is the last thing for that branch)

The attatched is a proof-of-concept for using strictly generic code to 
pop stack frames.

Making the assumption that the register unwind code works (...), it pops 
a frame in two steps:

- Unwinds the frame's registers saving them in a scratch regcache
(the unwound registers are in the save_reggroup)
- Copies that scratch regcache into the targets registers
(the copied registers are in the restore_reggroup)

It works with the d10v.

It eliminates the per-frame pop method which means that a new 
traditional frame unwinder is down to just two methods.

(just don't look too closely at how I managed to do the register save, 
it pulled a few swifties :-)

I'll follow this one up next week,
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030307/90afaca1/attachment.ksh>


More information about the Gdb-patches mailing list