binutils-gdb/gdb/python
Simon Marchi 0f8e203412 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
2021-06-25 21:35:40 -04:00
..
lib/gdb gdb: fix python/lib/gdb/__init__.py formatting 2021-06-22 15:07:50 -04:00
py-all-events.def
py-arch.c
py-auto-load.c gdb: remove unnecessary lookup_cmd when deprecating commands 2021-05-27 14:00:07 -04:00
py-block.c
py-bpevent.c
py-breakpoint.c gdb/python: allow for catchpoint type breakpoints in python 2021-06-25 18:22:07 +01:00
py-cmd.c gdb: add context getter/setter to cmd_list_element 2021-06-25 21:35:40 -04:00
py-continueevent.c
py-event-types.def
py-event.c
py-event.h
py-events.h
py-evtregistry.c
py-evts.c
py-exitedevent.c
py-finishbreakpoint.c gdb: remove iterate_over_breakpoints function 2021-05-27 14:58:37 -04:00
py-frame.c gdb/python: add PendingFrame.level and Frame.level methods 2021-06-21 16:20:08 +01:00
py-framefilter.c gdb: fix some indentation issues 2021-05-27 15:01:28 -04:00
py-function.c
py-gdb-readline.c
py-inferior.c gdb/python: move PyLong_From* calls into py-utils.c 2021-06-21 16:09:06 +01:00
py-infevents.c
py-infthread.c
py-instruction.c
py-instruction.h
py-lazy-string.c
py-linetable.c
py-newobjfileevent.c
py-objfile.c
py-param.c gdb: add context getter/setter to cmd_list_element 2021-06-25 21:35:40 -04:00
py-prettyprint.c gdb: fix some indentation issues 2021-05-27 15:01:28 -04:00
py-progspace.c
py-record-btrace.c
py-record-btrace.h
py-record-full.c
py-record-full.h
py-record.c
py-record.h
py-ref.h
py-registers.c
py-signalevent.c
py-stopevent.c
py-stopevent.h
py-symbol.c Restore gdb.SYMBOL_LABEL_DOMAIN constant 2021-06-03 14:56:55 +02:00
py-symtab.c
py-threadevent.c
py-tui.c Forward mouse click to python TUI window 2021-06-04 16:18:10 +02:00
py-type.c Decode Ada types in Python layer 2021-06-25 08:07:21 -06:00
py-unwind.c gdb/python: print name of unwinder that claimed frame in debug message 2021-06-22 14:47:10 -04:00
py-utils.c
py-value.c gdb: use gdb::optional instead of passing a pointer to gdb::array_view 2021-06-25 20:43:06 +01:00
py-varobj.c
py-xmethods.c
python-config.py
python-internal.h
python.c gdb: make add_com_alias accept target as a cmd_list_element 2021-05-27 14:00:07 -04:00
python.h