Skip to content

Widen the effect of print compact-capabilities #60

@kevin-brodsky-arm

Description

@kevin-brodsky-arm

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions