Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/gdb-server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ void PCSX::GdbClient::processCommand() {
uint8_t n = fromHexChar(m_cmd[1]);
n <<= 4;
n |= fromHexChar(m_cmd[2]);
dumpOneRegister(n);
write(dumpOneRegister(n));
Copy link

Copilot AI Aug 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change assumes dumpOneRegister(n) returns a value that can be passed to write(), but without seeing the function signature, this could cause a compilation error if dumpOneRegister() returns void or an incompatible type.

Suggested change
write(dumpOneRegister(n));
write(std::string(dumpOneRegister(n)));

Copilot uses AI. Check for mistakes.

} else if (StringsHelpers::startsWith(m_cmd, "P")) {
if ((m_cmd.length() != 12) || (m_cmd[3] != '=')) {
write("E00");
Expand Down
Loading