From b46a8d7c1d50c06e641af99b58301db0499111b9 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 10 Nov 2017 13:21:10 -0700 Subject: Move some declarations to source.h I noticed a few declarations in defs.h that really could be put into source.h. I think it's generally preferable to something out of defs.h unless it is needed by most of the files in gdb. gdb/ChangeLog 2018-02-14 Tom Tromey * solib.c: Include source.h. * nto-tdep.c: Include source.h. * mi/mi-cmd-env.c: Include source.h. * infcmd.c: Include source.h. * exec.c: Include source.h. * defs.h (enum openp_flag, openp, source_full_path_of, mod_path) (add_path, directory_switch, source_path, init_source_path): Move declarations... * source.h (enum openp_flag, openp, source_full_path_of, mod_path) (add_path, directory_switch, source_path, init_source_path): ...here. --- gdb/mi/mi-cmd-env.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/mi') diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c index e7c41dd7bd4..2f5b803d5bd 100644 --- a/gdb/mi/mi-cmd-env.c +++ b/gdb/mi/mi-cmd-env.c @@ -31,6 +31,7 @@ #include "ui-out.h" #include "top.h" #include +#include "source.h" static const char path_var_name[] = "PATH"; static char *orig_path = NULL; -- cgit v1.2.1