[offbyone-branch] Fix d10v
Andrew Cagney
ac131313@redhat.com
Wed Mar 5 05:08:00 GMT 2003
Hello,
The attached gets the d10v, on the offbyone-branch, working again. Most
of it is `uneventful'. There is one nasty bit of work though:
{
/* See comment in "frame.h". */
gdb_assert (frame->next != NULL);
+ /* Fix up this PC's value. */
frame->pc = pc;
+ /* While we're at it, also update the cache, in NEXT, that also
+ contains that value. */
+ frame->next->pc_unwind_cache = pc;
+ frame->next->pc_unwind_cache_p = 1;
}
The d10v is a decr-pc-after break target and hence relies on
deprecated_update_frame_pc_hack to fix the frame's PC. Turns out that
the hack has to also fix the cached copy of that PC in the previous
frame (the information is redundently stored). Ulgh.
A follow-on is to eliminate the d10v's reliance on that hack.
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030305/d4717aa0/attachment.ksh>
More information about the Gdb-patches
mailing list