summaryrefslogtreecommitdiffstats
path: root/src/citra
diff options
context:
space:
mode:
authorpolaris- <nagatospam@gmail.com>2015-09-02 14:56:38 +0200
committerpolaris- <nagatospam@gmail.com>2015-09-20 04:28:02 +0200
commit5114d756470ff70b0ce8c6f3ff98000462aaef35 (patch)
tree8d4a5d94b02cb2499153922542af91aaf21837bb /src/citra
parentMerge pull request #1097 from yuriks/cfg-blocks (diff)
downloadyuzu-5114d756470ff70b0ce8c6f3ff98000462aaef35.tar
yuzu-5114d756470ff70b0ce8c6f3ff98000462aaef35.tar.gz
yuzu-5114d756470ff70b0ce8c6f3ff98000462aaef35.tar.bz2
yuzu-5114d756470ff70b0ce8c6f3ff98000462aaef35.tar.lz
yuzu-5114d756470ff70b0ce8c6f3ff98000462aaef35.tar.xz
yuzu-5114d756470ff70b0ce8c6f3ff98000462aaef35.tar.zst
yuzu-5114d756470ff70b0ce8c6f3ff98000462aaef35.zip
Diffstat (limited to 'src/citra')
-rw-r--r--src/citra/citra.cpp3
-rw-r--r--src/citra/config.cpp4
-rw-r--r--src/citra/default_ini.h5
3 files changed, 12 insertions, 0 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp
index 46f4a07c9..b36865395 100644
--- a/src/citra/citra.cpp
+++ b/src/citra/citra.cpp
@@ -30,6 +30,8 @@
#include "video_core/video_core.h"
+#include "core/gdbstub/gdbstub.h"
+
static void PrintHelp()
{
@@ -72,6 +74,7 @@ int main(int argc, char **argv) {
Config config;
log_filter.ParseFilterString(Settings::values.log_filter);
+ GDBStub::SetServerPort(static_cast<u32>(Settings::values.gdbstub_port));
EmuWindow_GLFW* emu_window = new EmuWindow_GLFW;
diff --git a/src/citra/config.cpp b/src/citra/config.cpp
index 8a98bda87..af343e9fe 100644
--- a/src/citra/config.cpp
+++ b/src/citra/config.cpp
@@ -75,6 +75,10 @@ void Config::ReadValues() {
// Miscellaneous
Settings::values.log_filter = glfw_config->Get("Miscellaneous", "log_filter", "*:Info");
+
+ // GDBStubebugging
+ Settings::values.use_gdbstub = glfw_config->GetBoolean("Debugging", "use_gdbstub", false);
+ Settings::values.gdbstub_port = glfw_config->GetInteger("Debugging", "gdbstub_port", 24689);
}
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 =
# A filter which removes logs below a certain logging level.
# Examples: *:Debug Kernel.SVC:Trace Service.*:Critical
log_filter = *:Info
+
+[Debugging]
+# Port for listening to GDB connections.
+use_gdbstub=false
+gdbstub_port=24689
)";
}