summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.cpp
diff options
context:
space:
mode:
authorGravatar Jonathan Hao2017-01-05 00:48:29 +0800
committerGravatar Yuri Kunde Schlesner2017-01-04 13:48:29 -0300
commitc18cb1b192d60499af3d68b244e86c8dd8f55200 (patch)
tree48c481884bb29dd7bde72694a6ed703bb416d7c3 /src/core/gdbstub/gdbstub.cpp
parentUpdate .travis.yml (diff)
downloadyuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.gz
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.tar.xz
yuzu-c18cb1b192d60499af3d68b244e86c8dd8f55200.zip
Fix some warnings (#2399)
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
-rw-r--r--src/core/gdbstub/gdbstub.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index d88e25073..5cf45ada5 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -57,7 +57,6 @@ const u32 SIGTERM = 15;
57const u32 MSG_WAITALL = 8; 57const u32 MSG_WAITALL = 8;
58#endif 58#endif
59 59
60const u32 R0_REGISTER = 0;
61const u32 R15_REGISTER = 15; 60const u32 R15_REGISTER = 15;
62const u32 CPSR_REGISTER = 25; 61const u32 CPSR_REGISTER = 25;
63const u32 FPSCR_REGISTER = 58; 62const u32 FPSCR_REGISTER = 58;
@@ -816,10 +815,6 @@ static void RemoveBreakpoint() {
816 auto addr_pos = std::find(start_offset, command_buffer + command_length, ','); 815 auto addr_pos = std::find(start_offset, command_buffer + command_length, ',');
817 PAddr addr = HexToInt(start_offset, static_cast<u32>(addr_pos - start_offset)); 816 PAddr addr = HexToInt(start_offset, static_cast<u32>(addr_pos - start_offset));
818 817
819 start_offset = addr_pos + 1;
820 u32 len =
821 HexToInt(start_offset, static_cast<u32>((command_buffer + command_length) - start_offset));
822
823 if (type == BreakpointType::Access) { 818 if (type == BreakpointType::Access) {
824 // Access is made up of Read and Write types, so add both breakpoints 819 // Access is made up of Read and Write types, so add both breakpoints
825 type = BreakpointType::Read; 820 type = BreakpointType::Read;