Add client_state struct.
authorStan Cox <scox@redhat.com>
Mon, 4 Jun 2018 14:20:49 +0000 (10:20 -0400)
committerStan Cox <scox@redhat.com>
Mon, 4 Jun 2018 14:20:49 +0000 (10:20 -0400)
commitc12a5089640109567e2e06f0c5d2d1bf4fb3f5eb
treee898e2fded595ab6342d3a3283cd4e3b5f8bd838
parent23081219bfe58dd07b1e0a110728d7195155d0e2
Add client_state struct.

Collect per client specific global data items into struct client_state,
which is similar in purpose to remote.c::remote_state.

gdbserver/ChangeLog
* server.h (struct client_state): New.
* server.c (cont_thread, general_thread, multi_process)
(report_fork_events, report_vfork_events, report_exec_events)
(report_thread_events, swbreak_feature, hwbreak_feature)
(vCont_supported, disable_randomization, pass_signals)
(program_signals, program_signals_p, last_status, last_ptid, own_buf):
Moved to client_state.
* remote-utils.c (remote_debug, noack_mode)
(transport_is_reliable): Moved to client_state.
* tracepoint.c (current_traceframe): Moved to client_state.

Update all callers.
* server.c, remote-utils.c, tracepoint.c, fork-child.c,
linux-low.c, remote-utils.h, target.c: Use client_state.
gdb/gdbserver/ChangeLog
gdb/gdbserver/fork-child.c
gdb/gdbserver/linux-low.c
gdb/gdbserver/remote-utils.c
gdb/gdbserver/remote-utils.h
gdb/gdbserver/server.c
gdb/gdbserver/server.h
gdb/gdbserver/target.c
gdb/gdbserver/tracepoint.c