gdb-gdb.py: SyntaxError: Missing parentheses in call to 'print'
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 22 Feb 2016 16:15:14 +0000 (17:15 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 22 Feb 2016 16:15:14 +0000 (17:15 +0100)
commitac46107c5c781894e013b10cd9fb5c98a8393d26
tree90819f2962ee8ce36d73708c52da19fd898f4466
parent3b4dbbbf59aef4308bae6654bdc7968797504a3c
gdb-gdb.py: SyntaxError: Missing parentheses in call to 'print'

After building GDB
--with-python=/usr/bin/python3
and for example stripping ./gdb and running:
./gdb -data-directory data-directory/ -iex "add-auto-load-safe-path $PWD/gdb-gdb.gdb" -iex "add-auto-load-safe-path $PWD/gdb-gdb.
py" ./gdb
I get:
Make breakpoint pending on future shared library load? (y or [n]) [answered N; input not from terminal]
  File "/home/jkratoch/redhat/gdb-test-python3/gdb/gdb-gdb.py", line 91
    print "Warning: Cannot find enum type_flag_value type."
  ^
SyntaxError: Missing parentheses in call to 'print'
(top-gdb) q

gdb/ChangeLog
2016-02-22  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print.
gdb/ChangeLog
gdb/gdb-gdb.py