-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
I often use liballocs from the debugger to debug issues (... issues with liballocs, normally, but hopefully it generalises).
I can do this because I understand liballocs's data structures. It would be nice to have some gdb macros that make this friendlier. E.g. perhaps the macros could be something like this:
whatis x: prints uniqtype information forxwhereis x: prints allocation containment information forx, from memory mappings downwhyis x: summarise allocation site / callchain ofx(we currently don't keep callchains, but might)- others?
... all have the ambiguity that x might be a pointer or an lvalue, i.e. it's not clear whether to strip a level of indirection from x. Probably, for uniformity, x should be an lvalue and any liballocs query we issue would be on the pointer &x.
Metadata
Metadata
Assignees
Labels
No labels