This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

python-2.4 compat. [Re: [patch][python] 1 of 5 - Frame filter Python C code changes.]


On Fri, 10 May 2013 12:42:20 +0200, Phil Muldoon wrote:
[...]
> --- /dev/null
> +++ b/gdb/python/lib/gdb/command/frame_filters.py
> @@ -0,0 +1,461 @@
[...]
> +            for frame_filter in sorted_frame_filters:
> +                name = frame_filter[0]
> +                try:
> +                    priority = '{:<8}'.format(
> +                        str(gdb.frames.get_priority(frame_filter[1])))
> +                    enabled = '{:<7}'.format(
> +                        self.enabled_string(gdb.frames.get_enabled(frame_filter[1])))
> +                except Exception as e:
> +                    print("  Error printing filter '"+name+"': "+str(e))
> +                else:
> +                    print("  %s  %s  %s" % (priority, enabled, name))
(plus it is there once again later)

CentOS-5 python-2.4.3-56.el5.x86_64:

./gdb -nx -data-directory ./data-directoryTraceback (most recent call last):
  File ".../gdb/testsuite/../data-directory/python/gdb/__init__.py", line 105, in auto_load_packages
    __import__(modname)
  File "./data-directory/python/gdb/command/frame_filters.py", line 82
    except Exception as e:
                      ^
SyntaxError: invalid syntax

GNU gdb (GDB) 7.6.50.20130912-cvs

IIRC it was agreed upon upstream FSF GDB should support python-2.4, could you
code it in a compatible way?


Thanks,
Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]