[cfe-dev] [analyzer] gdb pretty printers for analyzer specific types
Balázs Benics via cfe-dev
cfe-dev at lists.llvm.org
Thu Aug 6 15:42:20 PDT 2020
Unfortunately I have to chase some pointers, which are pointing to a class
having virtual functions.
I'm stuck for now, probably messed up some casts? Ah, writing pretty
printers is dark magic.
Yes, I planed to make use of the other printers as well as the default one.
It's not working yet though.
On Fri, Aug 7, 2020, 00:24 Sterling Augustine <saugustine at google.com> wrote:
> On Thu, Aug 6, 2020 at 2:16 PM Balázs Benics <benicsbalazs at gmail.com>
>> Unfortunately, I have to reimplement the dump functions of the complete
>> SVal, MemRegion and SymExpr hierarchy.
>> Since those refer to other objects, like a FunctionDecl.
> Just how much of a sub-object to dump is always a tricky call. Often the
> right call is at a pointer or reference boundary.
> Note also that if you implement the children function of the gdb api for
> the top-level type, you will get any sub-pretty printers that exist for
> free. And if they don't exist, gdb will use its default printing mechanism,
> which is often good enough.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev