[Bug python/12188] New: python gdb.parameter("endian") is ""
dje at google dot com
sourceware-bugzilla@sourceware.org
Wed Nov 3 20:14:00 GMT 2010
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.
More information about the Gdb-prs
mailing list