Use enum flags for flags passed to openp
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 13 Feb 2018 17:13:59 +0000 (12:13 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 13 Feb 2018 17:13:59 +0000 (12:13 -0500)
commit24b9144d4ba83d37751786b08b48ad62fb7aef26
treee0f9e35df6adee04d1dfbde2f2192fd728de91b5
parentdb7bf1058d28b2b5e931c60435a13f6db15df6af
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.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/defs.h
gdb/dwarf2read.c
gdb/source.c