Browse Source
Merge pull request #8500 from liamwhite/poke
gdbstub: fix register pokes
pull/15/merge
bunnei
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
src/core/debugger/gdbstub.cpp
|
|
|
@ -252,6 +252,7 @@ void GDBStub::ExecuteCommand(std::string_view packet, std::vector<DebuggerAction |
|
|
|
const auto sep{std::find(command.begin(), command.end(), '=') - command.begin() + 1}; |
|
|
|
const size_t reg{static_cast<size_t>(strtoll(command.data(), nullptr, 16))}; |
|
|
|
arch->RegWrite(backend.GetActiveThread(), reg, std::string_view(command).substr(sep)); |
|
|
|
SendReply(GDB_STUB_REPLY_OK); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 'm': { |
|
|
|
|