diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-02-13 12:13:59 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-02-13 12:13:59 -0500 |
commit | 24b9144d4ba83d37751786b08b48ad62fb7aef26 (patch) | |
tree | e0f9e35df6adee04d1dfbde2f2192fd728de91b5 /gdb/source.c | |
parent | db7bf1058d28b2b5e931c60435a13f6db15df6af (diff) | |
download | gdb-24b9144d4ba83d37751786b08b48ad62fb7aef26.zip gdb-24b9144d4ba83d37751786b08b48ad62fb7aef26.tar.gz gdb-24b9144d4ba83d37751786b08b48ad62fb7aef26.tar.bz2 |
Use enum flags for flags passed to openp
gdb/ChangeLog:
* defs.h (enum openp_flags): New enum.
(OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH, OPF_RETURN_REALPATH):
Move to enum openp_flags.
(openp_flags): New enum flags.
(openp): Change parameter type to openp_flags.
* source.c (openp): Change parameter type to openp_flags.
* cli/cli-cmds.c (find_and_open_script): Use openp_flags.
* dwarf2read.c (try_open_dwop_file): Use openp_flags.
Diffstat (limited to 'gdb/source.c')
-rw-r--r-- | gdb/source.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c index 009bec5..eba06f6 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -736,7 +736,7 @@ is_regular_file (const char *name, int *errno_ptr) /* >>>> This should only allow files of certain types, >>>> eg executable, non-directory. */ int -openp (const char *path, int opts, const char *string, +openp (const char *path, openp_flags opts, const char *string, int mode, char **filename_opened) { int fd; |