aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-frame-args.py
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.python/py-frame-args.py')
-rw-r--r--gdb/testsuite/gdb.python/py-frame-args.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-frame-args.py b/gdb/testsuite/gdb.python/py-frame-args.py
index ee875cb..abf89ac 100644
--- a/gdb/testsuite/gdb.python/py-frame-args.py
+++ b/gdb/testsuite/gdb.python/py-frame-args.py
@@ -76,3 +76,17 @@ pretty_printers_dict = {}
register_pretty_printers()
gdb.pretty_printers.append(lookup_function)
+
+
+class BasicFrameFilter(object):
+ def __init__(self):
+ self.name = "BasicFrameFilter"
+ self.priority = 100
+ self.enabled = True
+ gdb.frame_filters[self.name] = self
+
+ def filter(self, frame_iter):
+ return frame_iter
+
+
+BasicFrameFilter()