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/cli | |
parent | db7bf1058d28b2b5e931c60435a13f6db15df6af (diff) | |
download | binutils-gdb-24b9144d4ba83d37751786b08b48ad62fb7aef26.tar.gz |
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/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 18d1d4b3835..c3962e939ee 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -496,7 +496,7 @@ gdb::optional<open_script> find_and_open_script (const char *script_file, int search_path) { int fd; - int search_flags = OPF_TRY_CWD_FIRST | OPF_RETURN_REALPATH; + openp_flags search_flags = OPF_TRY_CWD_FIRST | OPF_RETURN_REALPATH; gdb::optional<open_script> opened; gdb::unique_xmalloc_ptr<char> file (tilde_expand (script_file)); |