VERY experimental Nintendo Switch 2 emulator
C++
[gdb] fix conn state to use same pipe (instead of a copy) (#4339)
xbzk1dcc57459187
diff --git a/src/core/debugger/debugger.cpp b/src/core/debugger/debugger.cppindex d1c767721b..4ed69d8128 100644--- a/src/core/debugger/debugger.cpp+++ b/src/core/debugger/debugger.cpp@@ -358,7 +358,7 @@ private:ConnectionState(boost::asio::ip::tcp::socket&& client_socket_, async_pipe signal_pipe_, Kernel::KernelCore& kernel): client_socket{std::move(client_socket_)}- , signal_pipe{signal_pipe_}+ , signal_pipe{std::move(signal_pipe_)}, active_thread{kernel, nullptr}{}diff --git a/src/core/hle/kernel/k_process.cpp b/src/core/hle/kernel/k_process.cppindex 7308b0ff87..27d1b1bfc4 100644--- a/src/core/hle/kernel/k_process.cpp+++ b/src/core/hle/kernel/k_process.cpp@@ -1021,6 +1021,9 @@ Result KProcess::Run(KernelCore& kernel, s32 priority, size_t stack_size) {// Suspend for debug, if we should.if (kernel.System().DebuggerEnabled()) {+ LOG_INFO(Debug_GDBStub,+ "GDB stub enabled; suspending guest process until a debugger continues execution on port {}",+ Settings::values.gdbstub_port.GetValue());main_thread->RequestSuspend(kernel, SuspendType::Debug);}