diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdb-gdb.py | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 92f1873..eac5e5c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2016-02-22 Jan Kratochvil <jan.kratochvil@redhat.com> + + * gdb-gdb.py (class TypeFlagsPrinter): Use parentheses for print. + 2016-02-22 Yao Qi <yao.qi@linaro.org> * arm-tdep.c: Fix code format issues. diff --git a/gdb/gdb-gdb.py b/gdb/gdb-gdb.py index 4f3ac1c..9a12baf 100644 --- a/gdb/gdb-gdb.py +++ b/gdb/gdb-gdb.py @@ -88,14 +88,14 @@ class TypeFlagsPrinter: try: flags = gdb.lookup_type("enum type_flag_value") except: - print "Warning: Cannot find enum type_flag_value type." - print " `struct type' pretty-printer will be degraded" + print("Warning: Cannot find enum type_flag_value type.") + print(" `struct type' pretty-printer will be degraded") return try: iflags = gdb.lookup_type("enum type_instance_flag_value") except: - print "Warning: Cannot find enum type_instance_flag_value type." - print " `struct type' pretty-printer will be degraded" + print("Warning: Cannot find enum type_instance_flag_value type.") + print(" `struct type' pretty-printer will be degraded") return # Note: TYPE_FLAG_MIN is a duplicate of TYPE_FLAG_UNSIGNED, # so exclude it from the list we are building. |