casaroli commented on code in PR #3962:
URL: https://github.com/apache/nuttx-apps/pull/3962#discussion_r4453003475
##########
system/gdbstub/gdbstub.c:
##########
Review Comment:
Done.
##########
system/gdbstub/gdbstub.c:
##########
@@ -92,6 +92,28 @@ static ssize_t gdb_send(FAR void *priv, FAR const char *buf,
size_t len)
return len;
}
+#ifdef CONFIG_NET
+static ssize_t gdb_net_send(FAR void *priv, FAR const char *buf, size_t len)
Review Comment:
Done.
##########
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)
+ {
+ /* The session ended: wait for the next client */
+ gdb_state_uninit(state);
+ close(fd);
+ goto reconnect;
+ }
#endif
+
+ if (ret == -ECONNRESET)
+ {
Review Comment:
Done.
--
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]