Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Widen the effect of print compact-capabilities #60

Open
kevin-brodsky-arm opened this issue Mar 13, 2024 · 0 comments
Open

Widen the effect of print compact-capabilities #60

kevin-brodsky-arm opened this issue Mar 13, 2024 · 0 comments

Comments

@kevin-brodsky-arm
Copy link

Currently set print compact-capabilities 0 only seems to have an effect when explicitly printing expressions of type __uintcap_t:

(gdb) set print compact-capabilities 0
(gdb) p argv
$52 = (char **) 0xfffffffff6a0 [rwxRWE,0x0-0x1000000000000]
(gdb) p (__uintcap_t)argv
$53 = {tag = 1, address = 0xfffffffff6a0, permissions = {[ Global Executive User0 MutableLoad BranchUnseal System StoreLocalCap StoreCap LoadCap Execute Store Load ] range = [0x0 - 0x1000000000000)}} 

It would be good for it to affect the printing of all capability types. It is more debatable whether it should affect capabilities printed in other contexts (e.g. backtraces), as that may be too verbose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant