class StdStringPrinter:
    """Print a std::string"""

def __init__(self, val):
    self.val = val

def to_string(self):
    return self.val['_M_dataplus']['_M_p']

def display_hint(self):
    pass
gdb with Qt pretty printers