This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/19287] New: python unwinder should default PC and SP to frame_id values


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]