mirror of
https://github.com/apache/nuttx.git
synced 2026-09-15 07:01:05 +00:00
tools/minidumpserver: don't stop while gdb client is stopping
VELAPLATFO-16411 Signed-off-by: xinbingnan <xinbingnan@xiaomi.com>
This commit is contained in:
parent
d98367693d
commit
75e591ae4f
1 changed files with 9 additions and 7 deletions
|
|
@ -648,14 +648,16 @@ if __name__ == "__main__":
|
|||
gdbserver.listen(1)
|
||||
|
||||
logger.info(f"Waiting GDB connection on port {args.port} ...")
|
||||
logger.info("Press Ctrl+C to stop ...")
|
||||
|
||||
conn, remote = gdbserver.accept()
|
||||
while True:
|
||||
try:
|
||||
conn, remote = gdbserver.accept()
|
||||
|
||||
if conn:
|
||||
logger.info(f"Accepted GDB connection from {remote}")
|
||||
|
||||
gdbstub.run(conn)
|
||||
|
||||
conn.close()
|
||||
if conn:
|
||||
logger.info(f"Accepted GDB connection from {remote}")
|
||||
gdbstub.run(conn)
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
|
||||
gdbserver.close()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue