Implement gdbstub
This commit is contained in:
parent
addef06081
commit
31dee93e84
18 changed files with 1174 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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
|
||||
)";
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue