summaryrefslogtreecommitdiffstats
path: root/tools/gdb/python/chains.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gdb/python/chains.py')
-rw-r--r--tools/gdb/python/chains.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/gdb/python/chains.py b/tools/gdb/python/chains.py
index 0826ba9..ef33ed6 100644
--- a/tools/gdb/python/chains.py
+++ b/tools/gdb/python/chains.py
@@ -48,3 +48,6 @@ class control:
def last(self):
return node(self.ctrl['Tail']['Node'])
+ def empty(self):
+ if self.last() == self.first().next():
+ return True