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

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).