mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-14 00:56:35 +00:00
dmnt2: fix gdb register output
This commit is contained in:
parent
545ade835d
commit
51d692dfba
1 changed files with 5 additions and 5 deletions
|
@ -433,7 +433,7 @@ namespace ams::dmnt {
|
|||
return 0;
|
||||
}
|
||||
|
||||
void SetGdbRegister32(char *dst, char * const dst_end, u32 value) {
|
||||
void SetGdbRegister32(char * &dst, char * const dst_end, u32 value) {
|
||||
if (value != 0) {
|
||||
AppendReplyFormat(dst, dst_end, "%08x", util::ConvertToBigEndian(value));
|
||||
} else {
|
||||
|
@ -441,7 +441,7 @@ namespace ams::dmnt {
|
|||
}
|
||||
}
|
||||
|
||||
void SetGdbRegister64(char *dst, char * const dst_end, u64 value) {
|
||||
void SetGdbRegister64(char * &dst, char * const dst_end, u64 value) {
|
||||
if (value != 0) {
|
||||
AppendReplyFormat(dst, dst_end, "%016lx", util::ConvertToBigEndian(value));
|
||||
} else {
|
||||
|
@ -449,7 +449,7 @@ namespace ams::dmnt {
|
|||
}
|
||||
}
|
||||
|
||||
void SetGdbRegister128(char *dst, char * const dst_end, u128 value) {
|
||||
void SetGdbRegister128(char * &dst, char * const dst_end, u128 value) {
|
||||
if (value != 0) {
|
||||
AppendReplyFormat(dst, dst_end, "%016lx%016lx", util::ConvertToBigEndian(static_cast<u64>(value >> 0)), util::ConvertToBigEndian(static_cast<u64>(value >> BITSIZEOF(u64))));
|
||||
} else {
|
||||
|
@ -457,7 +457,7 @@ namespace ams::dmnt {
|
|||
}
|
||||
}
|
||||
|
||||
void SetGdbRegisterPacket(char *dst, char * const dst_end, const svc::ThreadContext &thread_context, bool is_64_bit) {
|
||||
void SetGdbRegisterPacket(char * &dst, char * const dst_end, const svc::ThreadContext &thread_context, bool is_64_bit) {
|
||||
/* Clear packet. */
|
||||
dst[0] = 0;
|
||||
|
||||
|
@ -502,7 +502,7 @@ namespace ams::dmnt {
|
|||
}
|
||||
}
|
||||
|
||||
void SetGdbRegisterPacket(char *dst, char * const dst_end, const svc::ThreadContext &thread_context, u64 reg_num, bool is_64_bit) {
|
||||
void SetGdbRegisterPacket(char * &dst, char * const dst_end, const svc::ThreadContext &thread_context, u64 reg_num, bool is_64_bit) {
|
||||
/* Clear packet. */
|
||||
dst[0] = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue