From 39fb3e362cf71d0542a5807c97039cd474ef3716 Mon Sep 17 00:00:00 2001 From: Hedges Date: Wed, 6 Jun 2018 05:20:47 +0100 Subject: GDB Stub Improvements (#508) * GDB Stub should work now. * Applied clang-format. * Replaced htonll with swap64. * Tidy up. --- src/core/gdbstub/gdbstub.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/core/gdbstub/gdbstub.h') diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h index 201fca095..f2418c9e4 100644 --- a/src/core/gdbstub/gdbstub.h +++ b/src/core/gdbstub/gdbstub.h @@ -7,6 +7,7 @@ #pragma once #include "common/common_types.h" +#include "core/hle/kernel/thread.h" namespace GDBStub { @@ -91,4 +92,12 @@ bool GetCpuStepFlag(); * @param is_step */ void SetCpuStepFlag(bool is_step); + +/** + * Send trap signal from thread back to the gdbstub server. + * + * @param thread Sending thread. + * @param trap Trap no. + */ +void SendTrap(Kernel::Thread* thread, int trap); } // namespace GDBStub -- cgit v1.2.3