1130803Smarcel/* Dump-to-file commands, for GDB, the GNU debugger.
2130803Smarcel
3130803Smarcel   Copyright 2001 Free Software Foundation, Inc.
4130803Smarcel
5130803Smarcel   This file is part of GDB.
6130803Smarcel
7130803Smarcel   This program is free software; you can redistribute it and/or modify
8130803Smarcel   it under the terms of the GNU General Public License as published by
9130803Smarcel   the Free Software Foundation; either version 2 of the License, or
10130803Smarcel   (at your option) any later version.
11130803Smarcel
12130803Smarcel   This program is distributed in the hope that it will be useful,
13130803Smarcel   but WITHOUT ANY WARRANTY; without even the implied warranty of
14130803Smarcel   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15130803Smarcel   GNU General Public License for more details.
16130803Smarcel
17130803Smarcel   You should have received a copy of the GNU General Public License
18130803Smarcel   along with this program; if not, write to the Free Software
19130803Smarcel   Foundation, Inc., 59 Temple Place - Suite 330,
20130803Smarcel   Boston, MA 02111-1307, USA.  */
21130803Smarcel
22130803Smarcel#ifndef CLI_DUMP_H
23130803Smarcel#define CLI_DUMP_H
24130803Smarcel
25130803Smarcelextern void add_dump_command (char *name,
26130803Smarcel			      void (*func) (char *args, char *mode),
27130803Smarcel			      char *descr);
28130803Smarcel
29130803Smarcel/* Utilities for doing the dump.  */
30130803Smarcelextern char *scan_filename_with_cleanup (char **cmd, const char *defname);
31130803Smarcel
32130803Smarcelextern char *scan_expression_with_cleanup (char **cmd, const char *defname);
33130803Smarcel
34130803Smarcelextern FILE *fopen_with_cleanup (char *filename, const char *mode);
35130803Smarcel
36130803Smarcelextern char *skip_spaces (char *inp);
37130803Smarcel
38130803Smarcelextern struct value *parse_and_eval_with_error (char *exp, const char *fmt, ...) ATTR_FORMAT (printf, 2, 3);
39130803Smarcel
40130803Smarcel#endif
41