aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-11-10 13:21:10 -0700
committerTom Tromey <tom@tromey.com>2018-02-14 08:09:52 -0700
commitb46a8d7c1d50c06e641af99b58301db0499111b9 (patch)
tree2f7d8519a9693067f9fd42ce6c0a978783def518 /gdb/mi
parent797bc1cb25b9dbdbc663cf711aecb0acc2450276 (diff)
downloadbinutils-b46a8d7c1d50c06e641af99b58301db0499111b9.zip
binutils-b46a8d7c1d50c06e641af99b58301db0499111b9.tar.gz
binutils-b46a8d7c1d50c06e641af99b58301db0499111b9.tar.bz2
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 <tom@tromey.com> * 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.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-cmd-env.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c
index e7c41dd..2f5b803 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 <sys/stat.h>
+#include "source.h"
static const char path_var_name[] = "PATH";
static char *orig_path = NULL;