]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdbserver] Split a new utils.h file out of server.h.
authorPedro Alves <palves@redhat.com>
Thu, 5 Sep 2013 20:39:48 +0000 (20:39 +0000)
committerPedro Alves <palves@redhat.com>
Thu, 5 Sep 2013 20:39:48 +0000 (20:39 +0000)
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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.h

index 8b8985bdf8508762cd402386c1903d3d2293461c..0c901b27385daa4a39dcd8263c590ce5bf64862b 100644 (file)
@@ -1,3 +1,10 @@
+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)
index 4f13cd9099d8aff84c425f0cde4fa9a96e8fc22a..45c2ae357cb9c2a78b8e4ad4ca64fb6f7a5e3432 100644 (file)
@@ -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"