remote_target::m_remote_state, pointer -> object
authorPedro Alves <palves@redhat.com>
Fri, 25 May 2018 10:58:58 +0000 (11:58 +0100)
committerPedro Alves <palves@redhat.com>
Fri, 25 May 2018 10:58:58 +0000 (11:58 +0100)
commit3c69da406c72423afa4bd0e4fc4c805ec0b944a1
treefa73713c14baf1866b45e123ed056dc9aa5a51f2
parent277eb7f64ae0c949715751a382350368ef14e95e
remote_target::m_remote_state, pointer -> object

The only reason remote_target::m_remote_state is a pointer is that
struct remote_state is incomplete when struct remote_target is
defined.

This commit thus moves struct remote_state (and its dependencies)
higher up and makes remote_target::m_remote_state an object instead of
a pointer.

gdb/ChangeLog:
2018-05-25  Pedro Alves  <palves@redhat.com>

* remote.c (struct vCont_action_support, MAXTHREADLISTRESULTS)
(struct readahead_cache, struct packet_reg, struct
remote_arch_state, class remote_state): Move higher up in the
file.
(remote_target::m_remote_state): Now an object instead of a pointer.
(remote_target::get_remote_state): Adjust.
gdb/ChangeLog
gdb/remote.c