mirror of
				https://git.suyu.dev/suyu/suyu
				synced 2025-11-04 00:49:02 -06:00 
			
		
		
		
	Implement gdbstub
This commit is contained in:
		@@ -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
 | 
			
		||||
)";
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user