C_C++
Haskell
Java
LaTeX
Misc.
avalonia_hw
bash_history_abuse
cmdtest
cross_compile
gdb_pretty_print
main.c
main.cpp
myString.py
mybs.py
my_git_repo
rasterpython_eremias++
bind_test.sh
elif_problem.eax
example.m4
extension_cut.Makefile
fizzbuzz.f90
gitea_mass_create.sh
guards.hs
strategy.cs
test.info
test.texi
top_level.cs
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)
|