diff options
| author | 2015-11-11 23:21:31 -0500 | |
|---|---|---|
| committer | 2015-11-11 23:21:31 -0500 | |
| commit | 43bb29edc5a07ee290a462dc72743d96eaadd70d (patch) | |
| tree | c42780b313be023001c41c32a6f6090fe93c2afe /src/citra | |
| parent | Merge pull request #1236 from Subv/log_overflow (diff) | |
| parent | Fix bug with reading addresses and lengths (diff) | |
| download | yuzu-43bb29edc5a07ee290a462dc72743d96eaadd70d.tar.gz yuzu-43bb29edc5a07ee290a462dc72743d96eaadd70d.tar.xz yuzu-43bb29edc5a07ee290a462dc72743d96eaadd70d.zip | |
Merge pull request #1122 from polaris-/gdbstub
gdbstub implementation
Diffstat (limited to 'src/citra')
| -rw-r--r-- | src/citra/citra.cpp | 3 | ||||
| -rw-r--r-- | src/citra/config.cpp | 4 | ||||
| -rw-r--r-- | src/citra/default_ini.h | 5 |
3 files changed, 12 insertions, 0 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 46f4a07c9..c96fc1374 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -23,6 +23,7 @@ | |||
| 23 | #include "core/settings.h" | 23 | #include "core/settings.h" |
| 24 | #include "core/system.h" | 24 | #include "core/system.h" |
| 25 | #include "core/core.h" | 25 | #include "core/core.h" |
| 26 | #include "core/gdbstub/gdbstub.h" | ||
| 26 | #include "core/loader/loader.h" | 27 | #include "core/loader/loader.h" |
| 27 | 28 | ||
| 28 | #include "citra/config.h" | 29 | #include "citra/config.h" |
| @@ -72,6 +73,8 @@ int main(int argc, char **argv) { | |||
| 72 | Config config; | 73 | Config config; |
| 73 | log_filter.ParseFilterString(Settings::values.log_filter); | 74 | log_filter.ParseFilterString(Settings::values.log_filter); |
| 74 | 75 | ||
| 76 | GDBStub::ToggleServer(Settings::values.use_gdbstub); | ||
| 77 | GDBStub::SetServerPort(static_cast<u32>(Settings::values.gdbstub_port)); | ||
| 75 | 78 | ||
| 76 | EmuWindow_GLFW* emu_window = new EmuWindow_GLFW; | 79 | EmuWindow_GLFW* emu_window = new EmuWindow_GLFW; |
| 77 | 80 | ||
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index 8a98bda87..2f13c29a2 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp | |||
| @@ -75,6 +75,10 @@ void Config::ReadValues() { | |||
| 75 | 75 | ||
| 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 | |||
| 79 | // Debugging | ||
| 80 | Settings::values.use_gdbstub = glfw_config->GetBoolean("Debugging", "use_gdbstub", false); | ||
| 81 | Settings::values.gdbstub_port = glfw_config->GetInteger("Debugging", "gdbstub_port", 24689); | ||
| 78 | } | 82 | } |
| 79 | 83 | ||
| 80 | void Config::Reload() { | 84 | void Config::Reload() { |
diff --git a/src/citra/default_ini.h b/src/citra/default_ini.h index 7e5d49729..5ba40a8ed 100644 --- a/src/citra/default_ini.h +++ b/src/citra/default_ini.h | |||
| @@ -66,6 +66,11 @@ region_value = | |||
| 66 | # A filter which removes logs below a certain logging level. | 66 | # A filter which removes logs below a certain logging level. |
| 67 | # Examples: *:Debug Kernel.SVC:Trace Service.*:Critical | 67 | # Examples: *:Debug Kernel.SVC:Trace Service.*:Critical |
| 68 | log_filter = *:Info | 68 | log_filter = *:Info |
| 69 | |||
| 70 | [Debugging] | ||
| 71 | # Port for listening to GDB connections. | ||
| 72 | use_gdbstub=false | ||
| 73 | gdbstub_port=24689 | ||
| 69 | )"; | 74 | )"; |
| 70 | 75 | ||
| 71 | } | 76 | } |