cederom commented on code in PR #3962:
URL: https://github.com/apache/nuttx-apps/pull/3962#discussion_r4453390234
##########
system/gdbstub/gdbstub.c:
##########
@@ -225,16 +261,19 @@ int main(int argc, FAR char *argv[])
do
{
ret = gdb_process(state, 0, NULL);
- if (ret == -ECONNRESET)
- {
#ifdef CONFIG_NET
- if (port)
- {
- close(fd);
- goto reconnect;
- }
+ if (ret < 0 && port)
Review Comment:
Yes, but in case of lost connection over network we have gdb state re-init
on new re-connect so in theory new debug takes place, while over the tty we
have no re-init so old debug can be resumed, which makes things inconsistent
depending on the transport used right?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]