]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
CHERI-style compact printing format
authorLuis Machado <luis.machado@linaro.org>
Tue, 15 Dec 2020 18:41:29 +0000 (15:41 -0300)
committerLuis Machado <luis.machado@linaro.org>
Wed, 16 Dec 2020 16:14:46 +0000 (13:14 -0300)
commite6d8fe4370eb207bcc0acc401be2bff205d6bf7b
tree2b99dab851da5a31383da8bbcce35fb05c01099c
parentc03396afe61f5e01f07287a1c7dcb6effab2bb0d
CHERI-style compact printing format

This patch adds CHERI-style compact printing format to GDB and uses it
by default.

The format is described here: https://github.com/CTSRD-CHERI/cheri-c-programming/wiki/Displaying-Capabilities

gdbsupport/ChangeLog:

2020-12-16  Luis Machado  <luis.machado@arm.com>

* capability.cc (cap_short_perms_strings): Remove.
(capability::is_null_derived): New member function.
(capability::to_str): Document and handle new CHERY-style printing
format.
* capability.h (cap_constants): Document the CAP_SEAL_TYPE_*
constants.
(struct capability) <is_null_derived>: New member function prototype.
gdbsupport/ChangeLog
gdbsupport/capability.cc
gdbsupport/capability.h