blob: 58f6ea59c0db37deb1b996f5d2e8dbeaba9d0733 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
import gdb
class KapiDevicesDevicePrinter(gdb.ValuePrinter):
def __init__(self, val):
self.__val = val
def to_string(self):
return (
f"{self.__val['m_name']}"
)
def children(self):
yield ("name", self.__val["m_name"])
yield ("parent", self.__val["m_parent"])
def display_hint(self):
return None
|