Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: gdb/gdbserver/utils.h

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/gdbserver/tracepoint.c ('k') | gdb/gdbserver/utils.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 */
« no previous file with comments | « gdb/gdbserver/tracepoint.c ('k') | gdb/gdbserver/utils.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698