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
6 changes: 3 additions & 3 deletions src/debug/GdbCmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,14 +886,14 @@ ExecResult GdbStub::Handle_v_MustReplyEmpty(GdbStub* stub, const u8* cmd, ssize_

ExecResult GdbStub::Handle_v_Cont(GdbStub* stub, const u8* cmd, ssize_t len)
{
if (len < 1)
if (len < 2)
{
printf("insufficient length");
stub->RespStr("E01");
return ExecResult::Ok;
}

switch (cmd[0])
switch (cmd[1])
{
case 'c':
stub->RespStr("OK");
Expand All @@ -905,7 +905,7 @@ ExecResult GdbStub::Handle_v_Cont(GdbStub* stub, const u8* cmd, ssize_t len)
stub->RespStr("OK");
return ExecResult::MustBreak;
default:
printf("invalid continue %c %s\n", cmd[0], cmd);
printf("invalid continue %c %s\n", cmd[1], cmd);
stub->RespStr("E01");
return ExecResult::Ok;
}
Expand Down
Loading