dmnt: add basic gdb packet receive logic

This commit is contained in:
Michael Scire
2021-07-16 00:31:17 -07:00
parent e96d9950d2
commit 6da88a436f
11 changed files with 752 additions and 8 deletions

View File

@@ -15,6 +15,7 @@
*/
#include <stratosphere.hpp>
#include "dmnt2_debug_log.hpp"
#include "dmnt2_gdb_server.hpp"
extern "C" {
extern u32 __start__;
@@ -143,13 +144,12 @@ int main(int argc, char **argv)
/* Initialize debug log thread. */
dmnt::InitializeDebugLog();
/* TODO: Start GdbServer. */
/* Start GdbServer. */
dmnt::InitializeGdbServer();
/* TODO */
u64 i = 0;
while (true) {
AMS_DMNT2_DEBUG_LOG("Log #%llu\n", i++);
os::SleepThread(TimeSpan::FromSeconds(1));
os::SleepThread(TimeSpan::FromDays(1));
}
return 0;