This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/19399] New: add a way to get inferior's architecture
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 23 Dec 2015 19:16:47 +0000
- Subject: [Bug python/19399] New: add a way to get inferior's architecture
- Auto-submitted: auto-generated
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.