-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server terminates when gdb disconnects #131
Comments
As noted in the GDB documentation (section 20.3.1.2 http://sourceware.org/gdb/onlinedocs/gdb/Server.html), it is expected behavior for a GDB server to terminate after one session. Unfortunately, I don't think that stlink supports extended-remote, which would allow a persistent connection. That would be nice to add... |
Note: extended-remote is officially used to tell GDB to stay connected to the server even when no target is being debugged, however it typically also has the side effect of keeping the server up when GDB disconnects. |
It turns out that I had an old version, and in a more recent commit, someone tried to add support for this, but it does not quite work. Pull request #132 should add working support. |
Thank you for fast solution. I was not aware that persistance is not standard behaviour for gdb server. I'm used to use JLink gdb server which has this ability. I will try your patch tomorrow. |
Hello,
I'm not sure if your stlink gdbserver should be persistent, but when I'm using it with stm32vldiscovery kit it terminates allways when gdb disconnects. All other works great.
Here is the log:
regards
Jan
The text was updated successfully, but these errors were encountered: