mirror of https://github.com/mgba-emu/mgba.git
Debugger: Fix warning in GDB stub
This commit is contained in:
parent
a4907ba321
commit
d618bf8d7b
|
@ -400,15 +400,15 @@ static void _processQSupportedCommand(struct GDBStub* stub, const char* message)
|
|||
if (end && end < terminator) {
|
||||
len = end - message;
|
||||
} else {
|
||||
len = end - terminator;
|
||||
len = terminator - message;
|
||||
}
|
||||
if (!strncmp(message, "swbreak+", 8)) {
|
||||
if (!strncmp(message, "swbreak+", len)) {
|
||||
stub->supportsSwbreak = true;
|
||||
} else if (!strncmp(message, "hwbreak+", 8)) {
|
||||
} else if (!strncmp(message, "hwbreak+", len)) {
|
||||
stub->supportsHwbreak = true;
|
||||
} else if (!strncmp(message, "swbreak-", 8)) {
|
||||
} else if (!strncmp(message, "swbreak-", len)) {
|
||||
stub->supportsSwbreak = false;
|
||||
} else if (!strncmp(message, "hwbreak-", 8)) {
|
||||
} else if (!strncmp(message, "hwbreak-", len)) {
|
||||
stub->supportsHwbreak = false;
|
||||
}
|
||||
if (!end) {
|
||||
|
|
Loading…
Reference in New Issue