[Bug other/65366] New: gdbhooks.py is incompatible with Python3
jan.kratochvil at redhat dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 9 21:39:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65366
Bug ID: 65366
Summary: gdbhooks.py is incompatible with Python3
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
Assignee: unassigned at gcc dot gnu.org
Reporter: jan.kratochvil at redhat dot com
Host: x86_64-linux-gnu
GDB Python support upstream has always been compatible with Python3.
Fedora since F-22 builds GDB with Python3 by default (<=F-21 GDB used Python2).
gdbhooks.py in GCC trunk is compatible with Python2 but not Python3.
gdb-7.9-10.fc23.x86_64
(gdb) source /home/jkratoch/redhat/gcchead/gcc/c/../gdbhooks.py
File "/home/jkratoch/redhat/gcchead/gcc/c/../gdbhooks.py", line 372
print format_[i]
^
SyntaxError: Missing parentheses in call to 'print'
Additionally after fixing the 'print' incompatibility one gets randomly:
dependence_info = {clique = 257, Python Exception <class 'NameError'> name
'long' is not defined:
base = 1}}}, type = },
I have a patch, going to post it.
More information about the Gcc-bugs
mailing list