Add persistence support to gdb-server
authorMichael Pratt <michael@pratt.im>
Wed, 6 Mar 2013 17:52:12 +0000 (12:52 -0500)
committerMichael Pratt <michael@pratt.im>
Wed, 6 Mar 2013 17:52:12 +0000 (12:52 -0500)
commit9bed540624ac45ff334917a51c564caa278d5833
tree0c87bc08145452c21dda6b71fea977fbebb8bad2
parent3569970998cb8c15acb7754c167c5f35dad70a72
Add persistence support to gdb-server

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.
gdbserver/gdb-server.c