[PATCH 1/2] JSON Dumping of GENERIC trees

2024-09-21 Thread 4444-thor
From: thor This is the second revision of: https://gcc.gnu.org/pipermail/gcc-patches/2024-September/662849.html I've incorporated the feedback given both by Richard and David - I didn't find any memory leaks when testing in valgrind :) As before: This patch allows the compiler to dump GENERI

[PATCH 2/2] HTML Dumping of trees from gdb

2024-09-21 Thread 4444-thor
From: thor This patch allows one to dump a tree as HTML from within gdb by invoking, i.e, htlml-tree tree gcc/ChangeLog: * gcc/gdbhooks.py: Rudimentary dumping of GENERIC trees as html through one new python function (jsonNodeToHtml) and one new gdb command (html-tree). There