'Initialize register values within the state
:param regs_dump: The output of ``info registers`` in gdb.'

def set_regs(self, regs_dump):

    if ((self.real_stack_top == 0) and (self.adjust_stack is True)):
        raise SimStateError("You    need    to    set    the    stack    first,    or    setadjust_stack    to    False.    Beware    that    in    this    case,    sp    and    bp    won't    be    updated")
    data = self._read_data(regs_dump)
    rdata = re.split('\n', data)
    for r in rdata:
        if (r == ''):
            continue
        reg = re.split('    +', r)[0]
        val = int(re.split('    +', r)[1], 16)
        try:
            self.state.registers.store(reg, claripy.BVV(val, self.state.arch.bits))
        except KeyError as e:
            l.warning(('Reg    %s    was    not    set' % str(e)))
    self._adjust_regs()
