diff options
author | Tom Tromey <tom@tromey.com> | 2019-03-30 11:29:17 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-03-30 11:36:53 -0600 |
commit | 268f4c4cd7b229f7f23ebbf6006973ebe0a05888 (patch) | |
tree | c97516c90aa5bf6ccb54c494c275339d42dc03aa /gdb/gdbserver/remote-utils.c | |
parent | ae2b14c73cd42b067e9687219155ed044210f0c1 (diff) | |
download | binutils-gdb-users/tromey/sort-includes.tar.gz |
the patchusers/tromey/sort-includes
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 65 |
1 files changed, 37 insertions, 28 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 4e6f9c62de8..b95f63966bc 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -17,50 +17,59 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "server.h" -#if HAVE_TERMIOS_H -#include <termios.h> +#include "remote-utils.h" + +/* Standard C includes. */ +#if HAVE_ARPA_INET_H +#include <arpa/inet.h> #endif -#include "target.h" -#include "gdbthread.h" -#include "tdesc.h" -#include "dll.h" -#include "common/rsp-low.h" -#include "common/netstuff.h" -#include "common/filestuff.h" #include <ctype.h> -#if HAVE_SYS_IOCTL_H -#include <sys/ioctl.h> +#if HAVE_FCNTL_H +#include <fcntl.h> #endif -#if HAVE_SYS_FILE_H -#include <sys/file.h> +#if HAVE_NETDB_H +#include <netdb.h> #endif #if HAVE_NETINET_IN_H #include <netinet/in.h> #endif -#if HAVE_SYS_SOCKET_H -#include <sys/socket.h> -#endif -#if HAVE_NETDB_H -#include <netdb.h> -#endif #if HAVE_NETINET_TCP_H #include <netinet/tcp.h> #endif -#if HAVE_SYS_IOCTL_H -#include <sys/ioctl.h> -#endif #if HAVE_SIGNAL_H #include <signal.h> #endif -#if HAVE_FCNTL_H -#include <fcntl.h> +#if HAVE_SYS_FILE_H +#include <sys/file.h> #endif -#include "common/gdb_sys_time.h" -#include <unistd.h> -#if HAVE_ARPA_INET_H -#include <arpa/inet.h> +#if HAVE_SYS_IOCTL_H +#include <sys/ioctl.h> +#endif +#if HAVE_SYS_IOCTL_H +#include <sys/ioctl.h> +#endif +#if HAVE_SYS_SOCKET_H +#include <sys/socket.h> #endif #include <sys/stat.h> +#if HAVE_TERMIOS_H +#include <termios.h> +#endif +#include <unistd.h> + +/* Local non-gdb includes. */ +#include "dll.h" +#include "tdesc.h" + +/* Local subdirectory includes. */ +#include "common/filestuff.h" +#include "common/gdb_sys_time.h" +#include "common/netstuff.h" +#include "common/rsp-low.h" + +/* Local includes. */ +#include "gdbthread.h" +#include "target.h" #if USE_WIN32API #if _WIN32_WINNT < 0x0501 |