[PATCH V2] AArch64 pauth: Indicate unmasked addresses in backtrace
Fri Aug 9 16:51:00 GMT 2019
On 8/9/19 3:46 PM, Alan Hayward wrote:
> I was thinking of the following:
Ah, I thought you meant create a "uiout->field_addr_flags(...);" method.
> char *flags = gdbarch_print_pc_addr_flags(frame, pc); /* Returns null or âPACâ or âFOO,BARâ etc */
> if (flags)
> uiout->text (â [â);
> uiout->field_string (âaddr_flags", flags);
> uiout->text (â]â);
> addr_flags can be printed by any target that wishes. And PAC only needs to be in
> AArch64 specifics.
Sounds fine to me.
Maybe return a std::string instead of a pointer to a static buffer.
More information about the Gdb-patches