mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 01:28:46 +00:00
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
14
gdb/defs.h
14
gdb/defs.h
@@ -342,11 +342,17 @@ extern const char *pc_prefix (CORE_ADDR);
|
||||
/* From source.c */
|
||||
|
||||
/* See openp function definition for their description. */
|
||||
#define OPF_TRY_CWD_FIRST 0x01
|
||||
#define OPF_SEARCH_IN_PATH 0x02
|
||||
#define OPF_RETURN_REALPATH 0x04
|
||||
|
||||
extern int openp (const char *, int, const char *, int, char **);
|
||||
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 **);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user