sort into folders
This commit is contained in:
12
Misc./gdb_pretty_print/myString.py
Normal file
12
Misc./gdb_pretty_print/myString.py
Normal file
@ -0,0 +1,12 @@
|
||||
class myStringPrinter:
|
||||
def __init__(self, val):
|
||||
self.val = val
|
||||
def to_string(self):
|
||||
return str(self.val['a'])
|
||||
|
||||
def mylookup(val):
|
||||
if str(val.type) == 'myString':
|
||||
return myStringPrinter(val)
|
||||
return None
|
||||
|
||||
gdb.pretty_printers.append(mylookup)
|
Reference in New Issue
Block a user