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/19399] New: add a way to get inferior's architecture


https://sourceware.org/bugzilla/show_bug.cgi?id=19399

            Bug ID: 19399
           Summary: add a way to get inferior's architecture
           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'd like to be able to instantiate an arch-specific unwinder class when
doing an unwind.  However, it is difficult to find the correct "current"
architecture to use.

It's not possible to use gdb.Frame.architecture(), because that requires
a frame -- but this is happening during unwinding.

The simplest thing for me would be if gdb.Inferior also had an architecture()
method.  This could return the inferior's gdbarch.


Meanwhile I'm not sure what workaround I can use.

-- 
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]