Skip to content
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

Add gdb-server persistence #132

Merged
merged 2 commits into from
Mar 6, 2013
Merged

Add gdb-server persistence #132

merged 2 commits into from
Mar 6, 2013

Conversation

prattmic
Copy link
Contributor

@prattmic prattmic commented Mar 6, 2013

As noted in issue #131, st-util exits upon disconnect from GDB. This is expected behavior, but it is nice to have the option to keep st-util up. Commit 1c2828c attempted to add support for this, but failed, as the listening socket has already been closed where the commit tries to jump back to.

This pull request adds working support for persistence, either enabled with the option '-m', or by connecting to the server with 'target extended-remote'. In extended-remote mode, 'run' can be used to reset and continue the target. Unfortunately, 'start' is broken, as, for some reason, it tries to access memory before sending the reset packet.

This closes issue #131.

When started with -m, or connected with 'target extended-remote', the
GDB server will not terminate upon disconnection from GDB, instead it
will begin listening for conenctions again.

Starting with extended-remote also has the advantage of allowing 'run'
to be used to reset the target and begin again.  Unfortunately, 'start'
is not working properly, as it does not send a reset packet (R), so it
complains when it tries to access memory before it is connected to the
target.
texane added a commit that referenced this pull request Mar 6, 2013
Add gdb-server persistence
@texane texane merged commit 7adf723 into stlink-org:master Mar 6, 2013
@Nightwalker-87 Nightwalker-87 added this to the v1.2.0 and older milestone Feb 25, 2020
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server terminates when gdb disconnects
3 participants