diff options
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index ef56544..20bb85e 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -97,7 +97,7 @@ static const char *const print_frame_info_choices[] = /* print_frame_info_print_what[i] maps a choice to the corresponding print_what enum. */ -static const gdb::optional<enum print_what> print_frame_info_print_what[] = +static const std::optional<enum print_what> print_frame_info_print_what[] = {{}, /* Empty value for "auto". */ SRC_LINE, LOCATION, SRC_AND_LOC, LOC_AND_ADDRESS, SHORT_LOCATION}; @@ -973,7 +973,7 @@ do_gdb_disassembly (struct gdbarch *gdbarch, Value not present indicates to the caller to use default values specific to the command being executed. */ -static gdb::optional<enum print_what> +static std::optional<enum print_what> print_frame_info_to_print_what (const char *print_frame_info) { for (int i = 0; print_frame_info_choices[i] != NULL; i++) @@ -1004,7 +1004,7 @@ print_pc (struct ui_out *uiout, struct gdbarch *gdbarch, frame_info_ptr frame, /* See stack.h. */ void -get_user_print_what_frame_info (gdb::optional<enum print_what> *what) +get_user_print_what_frame_info (std::optional<enum print_what> *what) { *what = print_frame_info_to_print_what @@ -2261,8 +2261,8 @@ iterate_over_block_local_vars (const struct block *block, struct print_variable_and_value_data { - gdb::optional<compiled_regex> preg; - gdb::optional<compiled_regex> treg; + std::optional<compiled_regex> preg; + std::optional<compiled_regex> treg; struct frame_id frame_id; int num_tabs; struct ui_file *stream; @@ -2307,7 +2307,7 @@ print_variable_and_value_data::operator() (const char *print_name, If REGEXP is NULL, it results in an empty regular expression. */ static void -prepare_reg (const char *regexp, gdb::optional<compiled_regex> *reg) +prepare_reg (const char *regexp, std::optional<compiled_regex> *reg) { if (regexp != NULL) { @@ -2499,8 +2499,8 @@ print_frame_arg_vars (frame_info_ptr frame, struct print_variable_and_value_data cb_data; struct symbol *func; CORE_ADDR pc; - gdb::optional<compiled_regex> preg; - gdb::optional<compiled_regex> treg; + std::optional<compiled_regex> preg; + std::optional<compiled_regex> treg; if (!get_frame_pc_if_available (frame, &pc)) { |