Skip to content

Commit 7f4dd52

Browse files
committed
GDBStub: fix packet end not being sent for some exceptions
1 parent 1c7b816 commit 7f4dd52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/GDBStub/src/internal/gdbstub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ static void ATTR_GDBFN sendReason() {
299299
} else if (gdbstub_savedRegs.reason&0x80) {
300300
//We stopped because of an exception. Convert exception code to a signal number and send it.
301301
i=gdbstub_savedRegs.reason&0x7f;
302-
if (i<sizeof(exceptionSignal)) return gdbPacketHex(exceptionSignal[i], 8); else gdbPacketHex(11, 8);
302+
if (i<sizeof(exceptionSignal)) gdbPacketHex(exceptionSignal[i], 8); else gdbPacketHex(11, 8);
303303
} else {
304304
//We stopped because of a debugging exception.
305305
gdbPacketHex(5, 8); //sigtrap

0 commit comments

Comments
 (0)