Re: [RFA PATCH] Recognize ggc_free'd memory in pretty-printers.

2019-06-11 Thread Richard Biener
On Fri, Jun 7, 2019 at 11:11 PM Jason Merrill wrote: > > A tree node that has been poisoned by ggc_free is easily recognizable by the > TREE_CODE 0xa5a5; let's look for that rather than access some random memory > off > the end of the array. > > OK for trunk? OK. Richard. > * gdbhooks.

[RFA PATCH] Recognize ggc_free'd memory in pretty-printers.

2019-06-07 Thread Jason Merrill
A tree node that has been poisoned by ggc_free is easily recognizable by the TREE_CODE 0xa5a5; let's look for that rather than access some random memory off the end of the array. OK for trunk? * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory. * tree.c (get_tree_c