forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
committed by
Simon Marchi
parent
db7bf1058d
commit
24b9144d4b
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user