X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fgdbserver%2Fremote-utils.h;h=4ca5d9435e57330b0d8b22714b90a7b2b6b01d03;hb=c5adaa1921c34d2b9711ec7cecd3cb4a253620db;hp=9db46bec6cc89dbf6de8f6fada0fb66547bdf90c;hpb=61baf725eca99af2569262d10aca03dcde2698f6;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/gdbserver/remote-utils.h b/gdb/gdbserver/remote-utils.h index 9db46bec6c..4ca5d9435e 100644 --- a/gdb/gdbserver/remote-utils.h +++ b/gdb/gdbserver/remote-utils.h @@ -1,5 +1,5 @@ /* Remote utility routines for the remote server for GDB. - Copyright (C) 1993-2017 Free Software Foundation, Inc. + Copyright (C) 1993-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -16,27 +16,23 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -#ifndef REMOTE_UTILS_H -#define REMOTE_UTILS_H - -extern int remote_debug; -extern int noack_mode; -extern int transport_is_reliable; +#ifndef GDBSERVER_REMOTE_UTILS_H +#define GDBSERVER_REMOTE_UTILS_H int gdb_connected (void); #define STDIO_CONNECTION_NAME "stdio" int remote_connection_is_stdio (void); -ptid_t read_ptid (char *buf, char **obuf); +ptid_t read_ptid (const char *buf, const char **obuf); char *write_ptid (char *buf, ptid_t ptid); int putpkt (char *buf); int putpkt_binary (char *buf, int len); int putpkt_notif (char *buf); int getpkt (char *buf); -void remote_prepare (char *name); -void remote_open (char *name); +void remote_prepare (const char *name); +void remote_open (const char *name); void remote_close (void); void write_ok (char *buf); void write_enn (char *buf); @@ -71,4 +67,4 @@ int relocate_instruction (CORE_ADDR *to, CORE_ADDR oldloc); void monitor_output (const char *msg); -#endif /* REMOTE_UTILS_H */ +#endif /* GDBSERVER_REMOTE_UTILS_H */