+2013-10-02 Phil Muldoon <pmuldoon@redhat.com>
+
+ * python/lib/gdb/command/frame_filters.py
+ (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
+ (ShowFrameFilterPriority.invoke): Ditto.
+
2013-10-01 Keith Seitz <keiths@redhat.com>
* linespec.c (struct ls_parser): Make 'saved_arg' const.
"""GDB commands for working with frame-filters."""
+import sys
import gdb
import copy
from gdb.FrameIterator import FrameIterator
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:
+ except Exception:
+ e = sys.exc_info()[1]
print(" Error printing filter '"+name+"': "+str(e))
else:
print(" %s %s %s" % (priority, enabled, name))
list_name = command_tuple[0]
try:
priority = self.get_filter_priority(list_name, filter_name);
- except Exception as e:
+ except Exception:
+ e = sys.exc_info()[1]
print("Error printing filter priority for '"+name+"':"+str(e))
else:
print("Priority of filter '" + filter_name + "' in list '" \