gdb: add context getter/setter to cmd_list_element
Straightforward replacement of get_cmd_context / set_cmd_context with cmd_list_element methods. gdb/ChangeLog: * cli/cli-decode.h (struct cmd_list_element) <set_context, context>: New. <context>: Rename to... <m_context>: ... this. * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove. * command.h (set_cmd_context, get_cmd_context): Remove, use cmd_list_element::set_context and cmd_list_element::context everywhere instead. Change-Id: I5016b0079014e3f17d1aa449ada7954473bf2b5d
This commit is contained in:
parent
ac2d77c6a1
commit
0f8e203412
17 changed files with 69 additions and 62 deletions
|
@ -49,6 +49,7 @@
|
|||
#include "typeprint.h"
|
||||
#include "namespace.h"
|
||||
#include "cli/cli-style.h"
|
||||
#include "cli/cli-decode.h"
|
||||
|
||||
#include "value.h"
|
||||
#include "mi/mi-common.h"
|
||||
|
@ -12229,7 +12230,7 @@ catch_ada_exception_command (const char *arg_entry, int from_tty,
|
|||
std::string excep_string;
|
||||
std::string cond_string;
|
||||
|
||||
tempflag = get_cmd_context (command) == CATCH_TEMPORARY;
|
||||
tempflag = command->context () == CATCH_TEMPORARY;
|
||||
|
||||
if (!arg)
|
||||
arg = "";
|
||||
|
@ -12254,7 +12255,7 @@ catch_ada_handlers_command (const char *arg_entry, int from_tty,
|
|||
std::string excep_string;
|
||||
std::string cond_string;
|
||||
|
||||
tempflag = get_cmd_context (command) == CATCH_TEMPORARY;
|
||||
tempflag = command->context () == CATCH_TEMPORARY;
|
||||
|
||||
if (!arg)
|
||||
arg = "";
|
||||
|
@ -12322,7 +12323,7 @@ catch_assert_command (const char *arg_entry, int from_tty,
|
|||
int tempflag;
|
||||
std::string cond_string;
|
||||
|
||||
tempflag = get_cmd_context (command) == CATCH_TEMPORARY;
|
||||
tempflag = command->context () == CATCH_TEMPORARY;
|
||||
|
||||
if (!arg)
|
||||
arg = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue