diff options
author | Tom Tromey <tom@tromey.com> | 2017-11-10 13:21:10 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-02-14 08:09:52 -0700 |
commit | b46a8d7c1d50c06e641af99b58301db0499111b9 (patch) | |
tree | 2f7d8519a9693067f9fd42ce6c0a978783def518 /gdb/defs.h | |
parent | 797bc1cb25b9dbdbc663cf711aecb0acc2450276 (diff) | |
download | gdb-b46a8d7c1d50c06e641af99b58301db0499111b9.zip gdb-b46a8d7c1d50c06e641af99b58301db0499111b9.tar.gz gdb-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/defs.h')
-rw-r--r-- | gdb/defs.h | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -339,33 +339,6 @@ extern int build_address_symbolic (struct gdbarch *, extern void print_address (struct gdbarch *, CORE_ADDR, struct ui_file *); extern const char *pc_prefix (CORE_ADDR); -/* From source.c */ - -/* See openp function definition for their description. */ - -enum openp_flag -{ - OPF_TRY_CWD_FIRST = 0x01, - OPF_SEARCH_IN_PATH = 0x02, - OPF_RETURN_REALPATH = 0x04, -}; - -DEF_ENUM_FLAGS_TYPE(openp_flag, openp_flags); - -extern int openp (const char *, openp_flags, const char *, int, char **); - -extern int source_full_path_of (const char *, char **); - -extern void mod_path (const char *, char **); - -extern void add_path (const char *, char **, int); - -extern void directory_switch (const char *, int); - -extern char *source_path; - -extern void init_source_path (void); - /* From exec.c */ /* * Process memory area starting at ADDR with length SIZE. Area is |