(ty)
| 137 | |
| 138 | |
| 139 | def is_char_star(ty): |
| 140 | # Note that "const char*" can have TYPE_CODE_INT as target type... |
| 141 | ty = get_basic_type(ty) |
| 142 | return (ty.code == gdb.TYPE_CODE_PTR and |
| 143 | get_basic_type(ty.target()).code |
| 144 | in (gdb.TYPE_CODE_CHAR, gdb.TYPE_CODE_INT)) |
| 145 | |
| 146 | |
| 147 | def deref(val): |