diff options
author | arades79 <scravers@protonmail.com> | 2023-02-14 17:33:42 +0100 |
---|---|---|
committer | arades79 <scravers@protonmail.com> | 2023-02-14 18:35:40 +0100 |
commit | 880b6e9795e2a86d8f31f437c9ac7d356e7790a5 (patch) | |
tree | 57b8656c56f3c1840a4dafe2400ebf9d717b1052 /src/core/debugger/gdbstub_arch.cpp | |
parent | remove static from pointer sized or smaller types for aesthetics, change constexpr static to static constexpr for consistency (diff) | |
download | yuzu-880b6e9795e2a86d8f31f437c9ac7d356e7790a5.tar yuzu-880b6e9795e2a86d8f31f437c9ac7d356e7790a5.tar.gz yuzu-880b6e9795e2a86d8f31f437c9ac7d356e7790a5.tar.bz2 yuzu-880b6e9795e2a86d8f31f437c9ac7d356e7790a5.tar.lz yuzu-880b6e9795e2a86d8f31f437c9ac7d356e7790a5.tar.xz yuzu-880b6e9795e2a86d8f31f437c9ac7d356e7790a5.tar.zst yuzu-880b6e9795e2a86d8f31f437c9ac7d356e7790a5.zip |
Diffstat (limited to 'src/core/debugger/gdbstub_arch.cpp')
-rw-r--r-- | src/core/debugger/gdbstub_arch.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/core/debugger/gdbstub_arch.cpp b/src/core/debugger/gdbstub_arch.cpp index b13c473bb..f3dd517bd 100644 --- a/src/core/debugger/gdbstub_arch.cpp +++ b/src/core/debugger/gdbstub_arch.cpp @@ -41,9 +41,8 @@ static void PutSIMDRegister(std::array<u32, 64>& simd_regs, size_t offset, const // For sample XML files see the GDB source /gdb/features // This XML defines what the registers are for this specific ARM device -std::string GDBStubA64::GetTargetXML() const { - constexpr static const char* target_xml = - R"(<?xml version="1.0"?> +constexpr std::string_view GDBStubA64::GetTargetXML() const { + return R"(<?xml version="1.0"?> <!DOCTYPE target SYSTEM "gdb-target.dtd"> <target version="1.0"> <architecture>aarch64</architecture> @@ -178,8 +177,6 @@ std::string GDBStubA64::GetTargetXML() const { <reg name="fpcr" bitsize="32"/> </feature> </target>)"; - - return target_xml; } std::string GDBStubA64::RegRead(const Kernel::KThread* thread, size_t id) const { @@ -270,9 +267,8 @@ u32 GDBStubA64::BreakpointInstruction() const { return 0xd4200000; } -std::string GDBStubA32::GetTargetXML() const { - constexpr static const char* target_xml = - R"(<?xml version="1.0"?> +constexpr std::string_view GDBStubA32::GetTargetXML() const { + return R"(<?xml version="1.0"?> <!DOCTYPE target SYSTEM "gdb-target.dtd"> <target version="1.0"> <architecture>arm</architecture> @@ -378,8 +374,6 @@ std::string GDBStubA32::GetTargetXML() const { <reg name="fpscr" bitsize="32" type="int" group="float" regnum="80"/> </feature> </target>)"; - - return target_xml; } std::string GDBStubA32::RegRead(const Kernel::KThread* thread, size_t id) const { |