diff options
author | Pedro Alves <palves@redhat.com> | 2013-09-05 20:39:48 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-09-05 20:39:48 +0000 |
commit | ff42e6abac37b2f05345c58b19a6be7d66dac7e7 (patch) | |
tree | e2815c2007a509d9d25490b3e85282e478f9239e /gdb | |
parent | 541af0f44b761c8fdcbc6f25f0939ebd114299b0 (diff) | |
download | gdb-ff42e6abac37b2f05345c58b19a6be7d66dac7e7.zip gdb-ff42e6abac37b2f05345c58b19a6be7d66dac7e7.tar.gz gdb-ff42e6abac37b2f05345c58b19a6be7d66dac7e7.tar.bz2 |
[gdbserver] Split a new utils.h file out of server.h.
gdb/gdbserver/
2013-09-05 Pedro Alves <palves@redhat.com>
* server.h (perror_with_name, error, fatal, warning, paddress)
(pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
include it.
* utils.h: New file.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/gdbserver/server.h | 12 |
2 files changed, 8 insertions, 11 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 8b8985b..0c901b2 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,12 @@ 2013-09-05 Pedro Alves <palves@redhat.com> + * server.h (perror_with_name, error, fatal, warning, paddress) + (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and + include it. + * utils.h: New file. + +2013-09-05 Pedro Alves <palves@redhat.com> + * server.h (remote_debug, noack_mode, transport_is_reliable) (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio) (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif) diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 4f13cd9..45c2ae3 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -274,18 +274,8 @@ extern void hostio_last_error_from_errno (char *own_buf); #include "remote-utils.h" -/* Functions from utils.c */ #include "common-utils.h" - -void perror_with_name (const char *string); -void error (const char *string,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); -void fatal (const char *string,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); -void warning (const char *string,...) ATTRIBUTE_PRINTF (1, 2); -char *paddress (CORE_ADDR addr); -char *pulongest (ULONGEST u); -char *plongest (LONGEST l); -char *phex_nz (ULONGEST l, int sizeof_l); -char *pfildes (gdb_fildes_t fd); +#include "utils.h" #include "gdb_assert.h" |