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.
This commit is contained in:
parent
d7561cbbf2
commit
562fc84992
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2013-10-01 Keith Seitz <keiths@redhat.com>
|
||||||
|
|
||||||
* linespec.c (struct ls_parser): Make 'saved_arg' const.
|
* linespec.c (struct ls_parser): Make 'saved_arg' const.
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
"""GDB commands for working with frame-filters."""
|
"""GDB commands for working with frame-filters."""
|
||||||
|
|
||||||
|
import sys
|
||||||
import gdb
|
import gdb
|
||||||
import copy
|
import copy
|
||||||
from gdb.FrameIterator import FrameIterator
|
from gdb.FrameIterator import FrameIterator
|
||||||
|
@ -79,7 +80,8 @@ class InfoFrameFilter(gdb.Command):
|
||||||
str(gdb.frames.get_priority(frame_filter[1])))
|
str(gdb.frames.get_priority(frame_filter[1])))
|
||||||
enabled = '{:<7}'.format(
|
enabled = '{:<7}'.format(
|
||||||
self.enabled_string(gdb.frames.get_enabled(frame_filter[1])))
|
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))
|
print(" Error printing filter '"+name+"': "+str(e))
|
||||||
else:
|
else:
|
||||||
print(" %s %s %s" % (priority, enabled, name))
|
print(" %s %s %s" % (priority, enabled, name))
|
||||||
|
@ -448,7 +450,8 @@ class ShowFrameFilterPriority(gdb.Command):
|
||||||
list_name = command_tuple[0]
|
list_name = command_tuple[0]
|
||||||
try:
|
try:
|
||||||
priority = self.get_filter_priority(list_name, filter_name);
|
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))
|
print("Error printing filter priority for '"+name+"':"+str(e))
|
||||||
else:
|
else:
|
||||||
print("Priority of filter '" + filter_name + "' in list '" \
|
print("Priority of filter '" + filter_name + "' in list '" \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue