| Index: gdb/gdbserver/utils.h
|
| diff --git a/gdb/bsd-kvm.h b/gdb/gdbserver/utils.h
|
| similarity index 53%
|
| copy from gdb/bsd-kvm.h
|
| copy to gdb/gdbserver/utils.h
|
| index d06e26ab1a96a3f0a8ee95f2e75e1e0e5e3f1e3e..7f5f1d9b4f93ea1c5c89c0b2d9baf0989de05346 100644
|
| --- a/gdb/bsd-kvm.h
|
| +++ b/gdb/gdbserver/utils.h
|
| @@ -1,6 +1,5 @@
|
| -/* BSD Kernel Data Access Library (libkvm) interface.
|
| -
|
| - Copyright (C) 2004, 2007-2012 Free Software Foundation, Inc.
|
| +/* General utility routines for the remote server for GDB.
|
| + Copyright (C) 1993-2013 Free Software Foundation, Inc.
|
|
|
| This file is part of GDB.
|
|
|
| @@ -17,17 +16,17 @@
|
| You should have received a copy of the GNU General Public License
|
| along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
| -#ifndef BSD_KVM_H
|
| -#define BSD_KVM_H
|
| -
|
| -struct pcb;
|
| -struct regcache;
|
| -
|
| -/* Add the libkvm interface to the list of all possible targets and
|
| - register CUPPLY_PCB as the architecture-specific process control
|
| - block interpreter. */
|
| +#ifndef UTILS_H
|
| +#define UTILS_H
|
|
|
| -extern void
|
| - bsd_kvm_add_target (int (*supply_pcb)(struct regcache *, struct pcb *));
|
| +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);
|
|
|
| -#endif /* bsd-kvm.h */
|
| +#endif /* UTILS_H */
|
|
|