orlandoarias at gmail dot com
2017-01-24 17:27:51 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=21079
Bug ID: 21079
Summary: [gdb-python] Error in handling MPX registers when
using Python 3
Product: gdb
Version: 7.12.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: orlandoarias at gmail dot com
Target Milestone: ---
Greetings,
When GDB is compiled with Python 3 support, dumping MPX registers in IA32 and
AMD64 results in the following error:
(gdb) info reg bnd0
Python Exception <class 'NameError'> name 'long' is not defined:
Python Exception <class 'NameError'> name 'long' is not defined:
bnd0
This is because 'long' and 'int' were merged in Python 3. This issue has been
brought up before [1] but I did not see anything in the bug tracker. There was
talk of submitting patches [2] but these appear to have never made it into GDB.
The patch alone seems to be insufficient, since I get duplicate output when
printing MPX registers:
(gdb) info reg bnd0
bnd0 {lbound = 0x0, ubound = 0xffffffffffffffff} : size = -1 {lbound = 0x0,
ubound = 0xffffffffffffffff} : size = -1
Thank you for looking into this.
Cheers,
Orlando.
[1] https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-02/msg00824.html
[2] https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-02/msg00849.html
Bug ID: 21079
Summary: [gdb-python] Error in handling MPX registers when
using Python 3
Product: gdb
Version: 7.12.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: orlandoarias at gmail dot com
Target Milestone: ---
Greetings,
When GDB is compiled with Python 3 support, dumping MPX registers in IA32 and
AMD64 results in the following error:
(gdb) info reg bnd0
Python Exception <class 'NameError'> name 'long' is not defined:
Python Exception <class 'NameError'> name 'long' is not defined:
bnd0
This is because 'long' and 'int' were merged in Python 3. This issue has been
brought up before [1] but I did not see anything in the bug tracker. There was
talk of submitting patches [2] but these appear to have never made it into GDB.
The patch alone seems to be insufficient, since I get duplicate output when
printing MPX registers:
(gdb) info reg bnd0
bnd0 {lbound = 0x0, ubound = 0xffffffffffffffff} : size = -1 {lbound = 0x0,
ubound = 0xffffffffffffffff} : size = -1
Thank you for looking into this.
Cheers,
Orlando.
[1] https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-02/msg00824.html
[2] https://lists.gnu.org/archive/html/bug-gnu-emacs/2016-02/msg00849.html
--
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.