summaryrefslogtreecommitdiff
path: root/src/core/debugger/gdbstub_arch.cpp
diff options
context:
space:
mode:
authorGravatar Liam2023-03-07 16:11:50 -0500
committerGravatar Liam2023-03-12 22:09:09 -0400
commit6bfb4c8f713323bb39b7e38a779c35583fc61bcc (patch)
tree6208bf4bbd1c303811384c8fe3d600560a4d3bfe /src/core/debugger/gdbstub_arch.cpp
parentkernel: prefer std::addressof (diff)
downloadyuzu-6bfb4c8f713323bb39b7e38a779c35583fc61bcc.tar.gz
yuzu-6bfb4c8f713323bb39b7e38a779c35583fc61bcc.tar.xz
yuzu-6bfb4c8f713323bb39b7e38a779c35583fc61bcc.zip
kernel: convert KThread to new style
Diffstat (limited to 'src/core/debugger/gdbstub_arch.cpp')
-rw-r--r--src/core/debugger/gdbstub_arch.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/debugger/gdbstub_arch.cpp b/src/core/debugger/gdbstub_arch.cpp
index 831c48513..75c94a91a 100644
--- a/src/core/debugger/gdbstub_arch.cpp
+++ b/src/core/debugger/gdbstub_arch.cpp
@@ -259,7 +259,7 @@ void GDBStubA64::WriteRegisters(Kernel::KThread* thread, std::string_view regist
259std::string GDBStubA64::ThreadStatus(const Kernel::KThread* thread, u8 signal) const { 259std::string GDBStubA64::ThreadStatus(const Kernel::KThread* thread, u8 signal) const {
260 return fmt::format("T{:02x}{:02x}:{};{:02x}:{};{:02x}:{};thread:{:x};", signal, PC_REGISTER, 260 return fmt::format("T{:02x}{:02x}:{};{:02x}:{};{:02x}:{};thread:{:x};", signal, PC_REGISTER,
261 RegRead(thread, PC_REGISTER), SP_REGISTER, RegRead(thread, SP_REGISTER), 261 RegRead(thread, PC_REGISTER), SP_REGISTER, RegRead(thread, SP_REGISTER),
262 LR_REGISTER, RegRead(thread, LR_REGISTER), thread->GetThreadID()); 262 LR_REGISTER, RegRead(thread, LR_REGISTER), thread->GetThreadId());
263} 263}
264 264
265u32 GDBStubA64::BreakpointInstruction() const { 265u32 GDBStubA64::BreakpointInstruction() const {
@@ -469,7 +469,7 @@ void GDBStubA32::WriteRegisters(Kernel::KThread* thread, std::string_view regist
469std::string GDBStubA32::ThreadStatus(const Kernel::KThread* thread, u8 signal) const { 469std::string GDBStubA32::ThreadStatus(const Kernel::KThread* thread, u8 signal) const {
470 return fmt::format("T{:02x}{:02x}:{};{:02x}:{};{:02x}:{};thread:{:x};", signal, PC_REGISTER, 470 return fmt::format("T{:02x}{:02x}:{};{:02x}:{};{:02x}:{};thread:{:x};", signal, PC_REGISTER,
471 RegRead(thread, PC_REGISTER), SP_REGISTER, RegRead(thread, SP_REGISTER), 471 RegRead(thread, PC_REGISTER), SP_REGISTER, RegRead(thread, SP_REGISTER),
472 LR_REGISTER, RegRead(thread, LR_REGISTER), thread->GetThreadID()); 472 LR_REGISTER, RegRead(thread, LR_REGISTER), thread->GetThreadId());
473} 473}
474 474
475u32 GDBStubA32::BreakpointInstruction() const { 475u32 GDBStubA32::BreakpointInstruction() const {