[PATCH 4/5] gdb/python: New method to access list of register groups

Eli Zaretskii eliz@gnu.org
Wed Jun 17 18:27:50 GMT 2020


> From: Andrew Burgess <andrew.burgess@embecosm.com>
> Date: Wed, 17 Jun 2020 18:38:08 +0100
> 
> gdb/ChangeLog:
> 
> 	* NEWS: Mention additions to Python API.
> 	* python/py-arch.c (archpy_register_groups): New function.
> 	(arch_object_methods): Add 'register_groups' method.
> 	* python/py-registers.c (reggroup_iterator_object): New struct.
> 	(reggroup_object): New struct.
> 	(gdbpy_new_reggroup): New function.
> 	(gdbpy_reggroup_to_string): New function.
> 	(gdbpy_reggroup_name): New function.
> 	(gdbpy_reggroup_iter): New function.
> 	(gdbpy_reggroup_iter_next): New function.
> 	(gdbpy_new_reggroup_iterator): New function
> 	(gdbpy_initialize_registers): Register new types.
> 	(reggroup_iterator_object_type): Define new Python type.
> 	(gdbpy_reggroup_getset): New static global.
> 	(reggroup_object_type): Define new Python type.
> 	* python/python-internal.h
> 
> gdb/testsuite/ChangeLog:
> 
> 	* gdb.python/py-arch-reg-groups.exp: New file.
> 
> gdb/doc/ChangeLog:
> 
> 	* gdb.texi (Registers): Add @anchor for 'info registers
> 	<reggroup>' command.
> 	* python.texi (Architectures In Python): Document new
> 	register_groups method.
> 	(Registers In Python): Document two new object types related to
> 	register groups.

The documentation parts are OK, thanks.


More information about the Gdb-patches mailing list