summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2016-03-27 06:03:19 +0200
committerSam Spilsbury <smspillaz@gmail.com>2016-04-23 05:54:02 +0200
commit41ec40e9aa2e8445ac73f90f9784c4130b977dae (patch)
tree5ea9011da974b8ee4b8bd61fcbef2bb4f3935ebc /src
parentdebugger: Warn if we reach an unreachable format (diff)
downloadyuzu-41ec40e9aa2e8445ac73f90f9784c4130b977dae.tar
yuzu-41ec40e9aa2e8445ac73f90f9784c4130b977dae.tar.gz
yuzu-41ec40e9aa2e8445ac73f90f9784c4130b977dae.tar.bz2
yuzu-41ec40e9aa2e8445ac73f90f9784c4130b977dae.tar.lz
yuzu-41ec40e9aa2e8445ac73f90f9784c4130b977dae.tar.xz
yuzu-41ec40e9aa2e8445ac73f90f9784c4130b977dae.tar.zst
yuzu-41ec40e9aa2e8445ac73f90f9784c4130b977dae.zip
Diffstat (limited to '')
-rw-r--r--src/core/gdbstub/gdbstub.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index c1a7ec5bf..ae0c116ef 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -529,7 +529,7 @@ static void ReadRegister() {
id |= HexCharToValue(command_buffer[2]);
}
- if (id >= R0_REGISTER && id <= R15_REGISTER) {
+ if (id <= R15_REGISTER) {
IntToGdbHex(reply, Core::g_app_core->GetReg(id));
} else if (id == CPSR_REGISTER) {
IntToGdbHex(reply, Core::g_app_core->GetCPSR());
@@ -584,7 +584,7 @@ static void WriteRegister() {
id |= HexCharToValue(command_buffer[2]);
}
- if (id >= R0_REGISTER && id <= R15_REGISTER) {
+ if (id <= R15_REGISTER) {
Core::g_app_core->SetReg(id, GdbHexToInt(buffer_ptr));
} else if (id == CPSR_REGISTER) {
Core::g_app_core->SetCPSR(GdbHexToInt(buffer_ptr));