'Set breakpoint at PLT functions match name regex
Usage:
MYNAME [name]'

def pltbreak(self, *arg):

    (name,) = normalize_argv(arg, 1)
    if (not name):
        name = ''
    headers = peda.elfheader()
    end = headers['.bss']
    symbols = peda.elfsymbol(name)
    if (len(symbols) == 0):
        msg('File    not    specified    or    PLT    symbols    not    found')
        return
    else:
        for symname in sorted(symbols):
            if ('plt' not in symname):
                continue
            if (name in symname):
                line = peda.execute_redirect(('break    %s' % symname))
                msg(('%s    (%s)' % (line.strip('\n'), symname)))
    return
