summaryrefslogtreecommitdiffstats
path: root/contrib/gdb/gdb/cli/cli-dump.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2004-06-20 18:26:14 +0000
committermarcel <marcel@FreeBSD.org>2004-06-20 18:26:14 +0000
commitddb504ee412e85d02695ae9f3deef7f220b77beb (patch)
treea49f8af771ff0bf61cc4f75dc6b9537c0bd683e7 /contrib/gdb/gdb/cli/cli-dump.h
parentc6cc8e4a1eb2de942258fa7cd28b9c4f9e5c6277 (diff)
downloadFreeBSD-src-ddb504ee412e85d02695ae9f3deef7f220b77beb.zip
FreeBSD-src-ddb504ee412e85d02695ae9f3deef7f220b77beb.tar.gz
Import of GDB version 6.1.1 (stripped; see FREEBSD-Xlist rev. 1.6).
Diffstat (limited to 'contrib/gdb/gdb/cli/cli-dump.h')
-rw-r--r--contrib/gdb/gdb/cli/cli-dump.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/gdb/gdb/cli/cli-dump.h b/contrib/gdb/gdb/cli/cli-dump.h
new file mode 100644
index 0000000..187e0e0
--- /dev/null
+++ b/contrib/gdb/gdb/cli/cli-dump.h
@@ -0,0 +1,40 @@
+/* Dump-to-file commands, for GDB, the GNU debugger.
+
+ Copyright 2001 Free Software Foundation, Inc.
+
+ This file is part of GDB.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA. */
+
+#ifndef CLI_DUMP_H
+#define CLI_DUMP_H
+
+extern void add_dump_command (char *name,
+ void (*func) (char *args, char *mode),
+ char *descr);
+
+/* Utilities for doing the dump. */
+extern char *scan_filename_with_cleanup (char **cmd, const char *defname);
+
+extern char *scan_expression_with_cleanup (char **cmd, const char *defname);
+
+extern FILE *fopen_with_cleanup (char *filename, const char *mode);
+
+extern char *skip_spaces (char *inp);
+
+extern struct value *parse_and_eval_with_error (char *exp, const char *fmt, ...) ATTR_FORMAT (printf, 2, 3);
+
+#endif
OpenPOWER on IntegriCloud