diff options
author | Pedro Alves <palves@redhat.com> | 2013-08-09 15:37:35 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-08-09 15:37:35 +0000 |
commit | db229724662fbf62607db43232fcaa3745579a52 (patch) | |
tree | 1bcdc805ee1b27ae1408b544e043a603418935ff /gdb/cli/cli-dump.h | |
parent | 3f12a589a083c783113c099aef51ff304af34f0f (diff) | |
download | binutils-db229724662fbf62607db43232fcaa3745579a52.zip binutils-db229724662fbf62607db43232fcaa3745579a52.tar.gz binutils-db229724662fbf62607db43232fcaa3745579a52.tar.bz2 |
Make functions in cli-dump.c static and remove cli-dump.h.
I noticed the functions declared in cli-dump.h aren't used anywhere
outside cli-dump.c.
The original patch that introduced cli-dump.c didn't include this header:
http://sourceware.org/ml/gdb-patches/2002-03/msg00518.html
But for some reason that I couldn't find from reading the archives around
that patch's discussion, cli-dump.h was introduced in the final checkin,
at:
http://sourceware.org/ml/gdb-patches/2002-03/msg00596.html
There seems to be no point in keeping this around nowadays.
gdb/
2013-08-09 Pedro Alves <palves@redhat.com>
* cli/cli-dump.c: Don't include cli/cli-dump.h.
(scan_expression_with_cleanup, scan_filename_with_cleanup)
(fopen_with_cleanup, add_dump_command): Make static.
* cli/cli-dump.h: Delete file.
* Makefile.in (HFILES_NO_SRCDIR): Remove reference to
cli/cli-dump.h.
Diffstat (limited to 'gdb/cli/cli-dump.h')
-rw-r--r-- | gdb/cli/cli-dump.h | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/gdb/cli/cli-dump.h b/gdb/cli/cli-dump.h deleted file mode 100644 index 585d4d7..0000000 --- a/gdb/cli/cli-dump.h +++ /dev/null @@ -1,34 +0,0 @@ -/* Dump-to-file commands, for GDB, the GNU debugger. - - Copyright (C) 2001-2013 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 3 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, see <http://www.gnu.org/licenses/>. */ - -#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 (const char *filename, const char *mode); - -#endif |