aboutsummaryrefslogtreecommitdiff
path: root/sys/tools/gdb/pcpu.py
diff options
context:
space:
mode:
Diffstat (limited to 'sys/tools/gdb/pcpu.py')
-rw-r--r--sys/tools/gdb/pcpu.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/tools/gdb/pcpu.py b/sys/tools/gdb/pcpu.py
index 94c451e6eca5..08ae81e5121e 100644
--- a/sys/tools/gdb/pcpu.py
+++ b/sys/tools/gdb/pcpu.py
@@ -7,6 +7,7 @@
import gdb
from freebsd import *
+
class pcpu(gdb.Function):
"""
A function to look up PCPU and DPCPU fields by name.
@@ -16,6 +17,7 @@ class pcpu(gdb.Function):
omitted, and the currently selected thread is on-CPU, that CPU is
used, otherwise an error is raised.
"""
+
def __init__(self):
super(pcpu, self).__init__("PCPU")
@@ -73,5 +75,6 @@ class pcpu(gdb.Function):
obj = gdb.Value(pcpu_base + pcpu_entry_addr - start + base)
return obj.cast(pcpu_entry.type.pointer()).dereference()
+
# Register with gdb.
pcpu()