This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/19287] New: python unwinder should default PC and SP to frame_id values
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 24 Nov 2015 19:17:05 +0000
- Subject: [Bug python/19287] New: python unwinder should default PC and SP to frame_id values
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19287
Bug ID: 19287
Summary: python unwinder should default PC and SP to frame_id
values
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
I'm writing an unwinder in Python.
I was a bit surprised to discover that I had to set the PC and SP values
on the unwind frame object by hand, like:
unwind_info = pending_frame.create_unwind_info(frame_id)
unwind_info.add_saved_register(self.PC_REGISTER, frame_id.pc)
unwind_info.add_saved_register(self.SP_REGISTER, frame_id.sp)
I would have thought that these values would default to the values
from the frame id.
--
You are receiving this mail because:
You are on the CC list for the bug.