tromey at sourceware dot org
2015-12-23 19:16:47 UTC
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.
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.
You are receiving this mail because:
You are on the CC list for the bug.