binutils-gdb/gdb/doc
Christian Biesinger 0b27c27d0d Add block['var'] accessor
Currently we support iteration on blocks; this patch extends that to make
subscript access work as well.

gdb/ChangeLog:

2019-08-05  Christian Biesinger  <cbiesinger@google.com>

	* NEWS: Mention dictionary access on blocks.
	* python/py-block.c (blpy_getitem): New function.
	(block_object_as_mapping): New struct.
	(block_object_type): Use new struct for tp_as_mapping field.

gdb/doc/ChangeLog:

2019-08-05  Christian Biesinger  <cbiesinger@google.com>

	* python.texi (Blocks In Python): Document dictionary access on blocks.

gdb/testsuite/ChangeLog:

2019-08-05  Christian Biesinger  <cbiesinger@google.com>

	* gdb.python/py-block.exp: Test dictionary access on blocks.
2019-08-05 13:06:18 -05:00
..
.gitignore
ChangeLog Add block['var'] accessor 2019-08-05 13:06:18 -05:00
Doxyfile-base.in
Doxyfile-gdb-api.in
Doxyfile-gdb-xref.in
Doxyfile-gdbserver.in
Makefile.in
a4rc.sed
agentexpr.texi
all-cfg.texi
annotate.texinfo Add thread-exit annotation. 2019-06-06 11:35:15 -06:00
doxy-index.in
fdl.texi
filter-for-doxygen
filter-params.pl
gdb.texinfo NEWS and documentation for info sources [-dirname | -basename] [--] [REGEXP]. 2019-08-03 21:27:51 +02:00
gpl.texi
guile.texi
lpsrc.sed
psrc.sed
python.texi Add block['var'] accessor 2019-08-05 13:06:18 -05:00
refcard.tex
stabs.texinfo
stack_frame.eps
stack_frame.pdf
stack_frame.png
stack_frame.svg
stack_frame.txt