Fixed an error with the 'G' packet on ARM when using the default GDB

register set where it could get an error when trying to restore the
fake "f0" - "f7" 12 byte float regs.

llvm-svn: 150781
This commit is contained in:
Greg Clayton 2012-02-17 02:13:09 +00:00
parent aa9a3eae79
commit 23a17953e7
1 changed files with 5 additions and 2 deletions

View File

@ -2512,8 +2512,11 @@ RNBRemote::HandlePacket_G (const char *p)
if (packet.GetHexBytes (reg_value.value.v_sint8, reg_entry->gdb_size, 0xcc) != reg_entry->gdb_size)
break;
if (!DNBThreadSetRegisterValueByID (pid, tid, reg_entry->nub_info.set, reg_entry->nub_info.reg, &reg_value))
return SendPacket ("E15");
if (reg_entry->fail_value == NULL)
{
if (!DNBThreadSetRegisterValueByID (pid, tid, reg_entry->nub_info.set, reg_entry->nub_info.reg, &reg_value))
return SendPacket ("E15");
}
}
return SendPacket ("OK");
}