This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/12188] New: python gdb.parameter("endian") is ""
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 3 Nov 2010 17:23:13 +0000
- Subject: [Bug python/12188] New: python gdb.parameter("endian") is ""
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12188
Summary: python gdb.parameter("endian") is ""
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
AssignedTo: unassigned@sourceware.org
ReportedBy: dje@google.com
Conversion of gdb parameters to python is not always correct.
Here's an example:
bash$ gdb
[...]
(gdb) show endian
The target endianness is set automatically (currently little endian)
(gdb) python print gdb.parameter("endian")
(gdb)
i.e. the value is ""
Explicitly setting the value to "auto" then yields a better result.
(gdb) set endian auto
The target endianness is set automatically (currently little endian)
(gdb) python print gdb.parameter("endian")
auto
Plus it would be useful to see the actual endianness from python, instead of
having to watch for and handle "auto".
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.