mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 13:13:08 +08:00
gdbserver.py: if thread < 0, need set to 0
Fix unexpected thread values Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
+1
-1
@@ -819,7 +819,7 @@ class GDBStub:
|
||||
elif b"c" == pkt[1:2]:
|
||||
thread = int(pkt[2:]) - 1
|
||||
|
||||
if thread == -1:
|
||||
if thread < 0:
|
||||
thread = 0
|
||||
|
||||
self.current_thread = thread
|
||||
|
||||
Reference in New Issue
Block a user