62def lookup_vpointer_function (val):
63 "Look-up and return a pretty-printer that can print val."
64
65
66 type = val.type
67
68
69 if type.code == gdb.TYPE_CODE_REF:
70 type = type.target ()
71
72
73 type = type.unqualified ().strip_typedefs ()
74
75 if type.code != gdb.TYPE_CODE_PTR:
76 return
77
78
79 if type.target().code == gdb.TYPE_CODE_STRUCT:
80 return VPointerPrinter(val)
81
82
83 return None
84
85