diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-15 17:59:37 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-15 17:59:37 +0200 |
commit | e8ca139ed036e6da8adf42fc6fbd93973b724d3c (patch) | |
tree | f65f739004cce919dc414f63a4b69b0670b4f546 /gdb/nds32-tdep.c | |
parent | f8a4e1192032044cdae544848865636f6e07a925 (diff) | |
download | gdb-e8ca139ed036e6da8adf42fc6fbd93973b724d3c.zip gdb-e8ca139ed036e6da8adf42fc6fbd93973b724d3c.tar.gz gdb-e8ca139ed036e6da8adf42fc6fbd93973b724d3c.tar.bz2 |
gdbserver: Move detach code to its own function
The code required to handle the 'D' packet is non trivial, so move it
out to its own function.
The moved out code is identical, except for the call to strtol and some
breaks that became returns.
Tested manually, and by running gdb.base/*detach*.exp with
native-gdbserver and native-extended-gdbserver.
gdb/gdbserver/ChangeLog:
* server.c (handle_detach): New function.
(process_serial_event): Move code out, call handle_detach.
Diffstat (limited to 'gdb/nds32-tdep.c')
0 files changed, 0 insertions, 0 deletions