'Extra support to GDB\'s print command
Usage:
MYNAME expression'

def xprint(self, *arg):

    text = ''
    exp = '    '.join(list(arg))
    m = re.search('.*\\[(.*)\\]|.*?s:(0x[^    ]*)', exp)
    if m:
        addr = peda.parse_and_eval(m.group(1))
        if to_int(addr):
            text += ('[0x%x]:    ' % to_int(addr))
    out = peda.parse_and_eval(exp)
    if to_int(out):
        chain = peda.examine_mem_reference(to_int(out))
        text += format_reference_chain(chain)
    msg(text)
    return
