gdbserver: Move detach code to its own function
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 15 Sep 2017 15:59:37 +0000 (17:59 +0200)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 15 Sep 2017 15:59:37 +0000 (17:59 +0200)
commite8ca139ed036e6da8adf42fc6fbd93973b724d3c
treef65f739004cce919dc414f63a4b69b0670b4f546
parentf8a4e1192032044cdae544848865636f6e07a925
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.
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c
This page took 0.027058 seconds and 4 git commands to generate.