public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/65366] New: gdbhooks.py is incompatible with Python3
@ 2015-03-09 21:39 jan.kratochvil at redhat dot com
2015-03-10 14:20 ` [Bug other/65366] " jan.kratochvil at redhat dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-03-09 21:39 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/65366] gdbhooks.py is incompatible with Python3
2015-03-09 21:39 [Bug other/65366] New: gdbhooks.py is incompatible with Python3 jan.kratochvil at redhat dot com
@ 2015-03-10 14:20 ` jan.kratochvil at redhat dot com
2015-06-02 7:37 ` jkratoch at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-03-10 14:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65366
--- Comment #1 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
[patch] PR other/65366: Fix gdbhooks.py for GDB with Python3
https://gcc.gnu.org/ml/gcc-patches/2015-03/msg00502.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/65366] gdbhooks.py is incompatible with Python3
2015-03-09 21:39 [Bug other/65366] New: gdbhooks.py is incompatible with Python3 jan.kratochvil at redhat dot com
2015-03-10 14:20 ` [Bug other/65366] " jan.kratochvil at redhat dot com
@ 2015-06-02 7:37 ` jkratoch at gcc dot gnu.org
2015-06-02 7:40 ` jan.kratochvil at redhat dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jkratoch at gcc dot gnu.org @ 2015-06-02 7:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65366
--- Comment #2 from jkratoch at gcc dot gnu.org ---
Author: jkratoch
Date: Tue Jun 2 07:37:22 2015
New Revision: 224012
URL: https://gcc.gnu.org/viewcvs?rev=224012&root=gcc&view=rev
Log:
PR other/65366
* gdbhooks.py: Use int(...) instead of long(...). Use print(...)
instead of print ... .
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gdbhooks.py
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/65366] gdbhooks.py is incompatible with Python3
2015-03-09 21:39 [Bug other/65366] New: gdbhooks.py is incompatible with Python3 jan.kratochvil at redhat dot com
2015-03-10 14:20 ` [Bug other/65366] " jan.kratochvil at redhat dot com
2015-06-02 7:37 ` jkratoch at gcc dot gnu.org
@ 2015-06-02 7:40 ` jan.kratochvil at redhat dot com
2015-06-03 8:28 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-06-02 7:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65366
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Checked in.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/65366] gdbhooks.py is incompatible with Python3
2015-03-09 21:39 [Bug other/65366] New: gdbhooks.py is incompatible with Python3 jan.kratochvil at redhat dot com
` (2 preceding siblings ...)
2015-06-02 7:40 ` jan.kratochvil at redhat dot com
@ 2015-06-03 8:28 ` rguenth at gcc dot gnu.org
2015-06-08 13:36 ` jkratoch at gcc dot gnu.org
2015-06-08 13:38 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-03 8:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65366
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Last reconfirmed| |2015-06-03
Resolution|FIXED |---
Ever confirmed|0 |1
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Re-open. Broke python 2 support.
Python Exception <class 'gdb.error'> Cannot convert value to int.:
Python Exception <class 'gdb.error'> Cannot convert value to int.:
Python Exception <class 'gdb.error'> Cannot convert value to int.:
for anything that resembles an address
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/65366] gdbhooks.py is incompatible with Python3
2015-03-09 21:39 [Bug other/65366] New: gdbhooks.py is incompatible with Python3 jan.kratochvil at redhat dot com
` (3 preceding siblings ...)
2015-06-03 8:28 ` rguenth at gcc dot gnu.org
@ 2015-06-08 13:36 ` jkratoch at gcc dot gnu.org
2015-06-08 13:38 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jkratoch at gcc dot gnu.org @ 2015-06-08 13:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65366
--- Comment #5 from jkratoch at gcc dot gnu.org ---
Author: jkratoch
Date: Mon Jun 8 13:35:51 2015
New Revision: 224223
URL: https://gcc.gnu.org/viewcvs?rev=224223&root=gcc&view=rev
Log:
PR other/65366
* gdbhooks.py: Import sys.
(intptr): New function. Replace int(...) by intptr(...).
Modified:
trunk/gcc/ChangeLog
trunk/gcc/gdbhooks.py
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/65366] gdbhooks.py is incompatible with Python3
2015-03-09 21:39 [Bug other/65366] New: gdbhooks.py is incompatible with Python3 jan.kratochvil at redhat dot com
` (4 preceding siblings ...)
2015-06-08 13:36 ` jkratoch at gcc dot gnu.org
@ 2015-06-08 13:38 ` jan.kratochvil at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: jan.kratochvil at redhat dot com @ 2015-06-08 13:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65366
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Checked in Comment 4 fix.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-06-08 13:38 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-09 21:39 [Bug other/65366] New: gdbhooks.py is incompatible with Python3 jan.kratochvil at redhat dot com
2015-03-10 14:20 ` [Bug other/65366] " jan.kratochvil at redhat dot com
2015-06-02 7:37 ` jkratoch at gcc dot gnu.org
2015-06-02 7:40 ` jan.kratochvil at redhat dot com
2015-06-03 8:28 ` rguenth at gcc dot gnu.org
2015-06-08 13:36 ` jkratoch at gcc dot gnu.org
2015-06-08 13:38 ` jan.kratochvil at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).