]> 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)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 1 Sep 2022 22:53:23 +0000 (15:53 -0700)
commitef9da044fd36da4b864492dea8cec8dba30c3e67
tree405713d9e5a261e9eb05432bfb23d3a1d050c838
parentfd9a12dca213f097e0fa617c27af98b864df5efe
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/capability.cc
gdbsupport/capability.h