diff options
| -rw-r--r-- | src/citra/config.cpp | 2 | ||||
| -rw-r--r-- | src/core/arm/dyncom/arm_dyncom_interpreter.cpp | 1 | ||||
| -rw-r--r-- | src/core/gdbstub/gdbstub.cpp | 10 | ||||
| -rw-r--r-- | src/core/gdbstub/gdbstub.h | 2 | ||||
| -rw-r--r-- | src/core/system.cpp | 4 |
5 files changed, 8 insertions, 11 deletions
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index af343e9fe..2f13c29a2 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp | |||
| @@ -76,7 +76,7 @@ void Config::ReadValues() { | |||
| 76 | // Miscellaneous | 76 | // Miscellaneous |
| 77 | Settings::values.log_filter = glfw_config->Get("Miscellaneous", "log_filter", "*:Info"); | 77 | Settings::values.log_filter = glfw_config->Get("Miscellaneous", "log_filter", "*:Info"); |
| 78 | 78 | ||
| 79 | // GDBStubebugging | 79 | // Debugging |
| 80 | Settings::values.use_gdbstub = glfw_config->GetBoolean("Debugging", "use_gdbstub", false); | 80 | Settings::values.use_gdbstub = glfw_config->GetBoolean("Debugging", "use_gdbstub", false); |
| 81 | Settings::values.gdbstub_port = glfw_config->GetInteger("Debugging", "gdbstub_port", 24689); | 81 | Settings::values.gdbstub_port = glfw_config->GetInteger("Debugging", "gdbstub_port", 24689); |
| 82 | } | 82 | } |
diff --git a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp index 88be27ab2..96c88c83a 100644 --- a/src/core/arm/dyncom/arm_dyncom_interpreter.cpp +++ b/src/core/arm/dyncom/arm_dyncom_interpreter.cpp | |||
| @@ -3895,7 +3895,6 @@ unsigned InterpreterMainLoop(ARMul_State* cpu) { | |||
| 3895 | unsigned int addr; | 3895 | unsigned int addr; |
| 3896 | unsigned int num_instrs = 0; | 3896 | unsigned int num_instrs = 0; |
| 3897 | 3897 | ||
| 3898 | |||
| 3899 | int ptr; | 3898 | int ptr; |
| 3900 | 3899 | ||
| 3901 | LOAD_NZCVT; | 3900 | LOAD_NZCVT; |
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp index 25ce63b29..15e6f36a0 100644 --- a/src/core/gdbstub/gdbstub.cpp +++ b/src/core/gdbstub/gdbstub.cpp | |||
| @@ -186,7 +186,7 @@ static u8 ReadByte() { | |||
| 186 | size_t received_size = recv(gdbserver_socket, reinterpret_cast<char*>(&c), 1, MSG_WAITALL); | 186 | size_t received_size = recv(gdbserver_socket, reinterpret_cast<char*>(&c), 1, MSG_WAITALL); |
| 187 | if (received_size != 1) { | 187 | if (received_size != 1) { |
| 188 | LOG_ERROR(Debug_GDBStub, "recv failed : %ld", received_size); | 188 | LOG_ERROR(Debug_GDBStub, "recv failed : %ld", received_size); |
| 189 | Deinit(); | 189 | Shutdown(); |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | return c; | 192 | return c; |
| @@ -322,7 +322,7 @@ static void SendReply(const char* reply) { | |||
| 322 | int sent_size = send(gdbserver_socket, reinterpret_cast<char*>(ptr), left, 0); | 322 | int sent_size = send(gdbserver_socket, reinterpret_cast<char*>(ptr), left, 0); |
| 323 | if (sent_size < 0) { | 323 | if (sent_size < 0) { |
| 324 | LOG_ERROR(Debug_GDBStub, "gdb: send failed"); | 324 | LOG_ERROR(Debug_GDBStub, "gdb: send failed"); |
| 325 | return Deinit(); | 325 | return Shutdown(); |
| 326 | } | 326 | } |
| 327 | 327 | ||
| 328 | left -= sent_size; | 328 | left -= sent_size; |
| @@ -773,7 +773,7 @@ void HandlePacket() { | |||
| 773 | HandleSignal(); | 773 | HandleSignal(); |
| 774 | break; | 774 | break; |
| 775 | case 'k': | 775 | case 'k': |
| 776 | Deinit(); | 776 | Shutdown(); |
| 777 | LOG_INFO(Debug_GDBStub, "killed by gdb"); | 777 | LOG_INFO(Debug_GDBStub, "killed by gdb"); |
| 778 | return; | 778 | return; |
| 779 | case 'g': | 779 | case 'g': |
| @@ -829,7 +829,7 @@ void ToggleServer(bool status) { | |||
| 829 | else { | 829 | else { |
| 830 | // Stop server | 830 | // Stop server |
| 831 | if (IsConnected()) { | 831 | if (IsConnected()) { |
| 832 | Deinit(); | 832 | Shutdown(); |
| 833 | } | 833 | } |
| 834 | 834 | ||
| 835 | g_server_enabled = status; | 835 | g_server_enabled = status; |
| @@ -908,7 +908,7 @@ void Init() { | |||
| 908 | Init(gdbstub_port); | 908 | Init(gdbstub_port); |
| 909 | } | 909 | } |
| 910 | 910 | ||
| 911 | void Deinit() { | 911 | void Shutdown() { |
| 912 | if (!g_server_enabled) { | 912 | if (!g_server_enabled) { |
| 913 | return; | 913 | return; |
| 914 | } | 914 | } |
diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h index da238f349..aff705a32 100644 --- a/src/core/gdbstub/gdbstub.h +++ b/src/core/gdbstub/gdbstub.h | |||
| @@ -44,7 +44,7 @@ void ToggleServer(bool status); | |||
| 44 | void Init(); | 44 | void Init(); |
| 45 | 45 | ||
| 46 | /// Stop gdbstub server. | 46 | /// Stop gdbstub server. |
| 47 | void Deinit(); | 47 | void Shutdown(); |
| 48 | 48 | ||
| 49 | /// Returns true if there is an active socket connection. | 49 | /// Returns true if there is an active socket connection. |
| 50 | bool IsConnected(); | 50 | bool IsConnected(); |
diff --git a/src/core/system.cpp b/src/core/system.cpp index 421fc48a7..7e9c56538 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp | |||
| @@ -24,13 +24,11 @@ void Init(EmuWindow* emu_window) { | |||
| 24 | Kernel::Init(); | 24 | Kernel::Init(); |
| 25 | HLE::Init(); | 25 | HLE::Init(); |
| 26 | VideoCore::Init(emu_window); | 26 | VideoCore::Init(emu_window); |
| 27 | |||
| 28 | GDBStub::Init(); | 27 | GDBStub::Init(); |
| 29 | } | 28 | } |
| 30 | 29 | ||
| 31 | void Shutdown() { | 30 | void Shutdown() { |
| 32 | GDBStub::Deinit(); | 31 | GDBStub::Shutdown(); |
| 33 | |||
| 34 | VideoCore::Shutdown(); | 32 | VideoCore::Shutdown(); |
| 35 | HLE::Shutdown(); | 33 | HLE::Shutdown(); |
| 36 | Kernel::Shutdown(); | 34 | Kernel::Shutdown(); |