diff options
author | Phil Muldoon <pmuldoon@redhat.com> | 2013-10-02 08:33:27 +0000 |
---|---|---|
committer | Phil Muldoon <pmuldoon@redhat.com> | 2013-10-02 08:33:27 +0000 |
commit | 562fc8499256c6eb50cd1517514b3e64e7040e5b (patch) | |
tree | 2155d3c9cd92fc7482b4b959dad0d5343a26da4a /gdb | |
parent | d7561cbbf27a8ff771f85baf6696aa7645250484 (diff) | |
download | gdb-562fc8499256c6eb50cd1517514b3e64e7040e5b.zip gdb-562fc8499256c6eb50cd1517514b3e64e7040e5b.tar.gz gdb-562fc8499256c6eb50cd1517514b3e64e7040e5b.tar.bz2 |
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/python/lib/gdb/command/frame_filters.py | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9f19d9e..22a2271 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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> * linespec.c (struct ls_parser): Make 'saved_arg' const. diff --git a/gdb/python/lib/gdb/command/frame_filters.py b/gdb/python/lib/gdb/command/frame_filters.py index b5d34ad..b04f477 100644 --- a/gdb/python/lib/gdb/command/frame_filters.py +++ b/gdb/python/lib/gdb/command/frame_filters.py @@ -16,6 +16,7 @@ """GDB commands for working with frame-filters.""" +import sys import gdb import copy from gdb.FrameIterator import FrameIterator @@ -79,7 +80,8 @@ class InfoFrameFilter(gdb.Command): 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)) @@ -448,7 +450,8 @@ class ShowFrameFilterPriority(gdb.Command): 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 '" \ |