mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
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:
@@ -29,6 +29,7 @@
|
||||
#include "cli/cli-utils.h"
|
||||
#include "completer.h"
|
||||
#include "cli/cli-style.h"
|
||||
#include "cli/cli-decode.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -389,7 +390,7 @@ catch_signal_command (const char *arg, int from_tty,
|
||||
bool catch_all = false;
|
||||
std::vector<gdb_signal> filter;
|
||||
|
||||
tempflag = get_cmd_context (command) == CATCH_TEMPORARY;
|
||||
tempflag = command->context () == CATCH_TEMPORARY;
|
||||
|
||||
arg = skip_spaces (arg);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user