C_C++
Java
Misc.
cmdtest
cross_compile
gdb_pretty_print
main.c
main.cpp
myString.py
mybs.py
bind_test.sh
example.m4
extension_cut.Makefile
fizzbuzz.f90
guards.hs
test.info
test.texi
Python
Vim
Webdev
git
.gitignore
Makefile
13 lines
250 B
Python
13 lines
250 B
Python
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)
|