From 593ba59cc406356145530c08ad5b7325974be11e Mon Sep 17 00:00:00 2001 From: anon Date: Mon, 28 Aug 2023 15:38:43 +0200 Subject: [PATCH] gdb stuff --- debug/examine_regex.gdb | 3 +++ debug/regex.pretty_print.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 debug/examine_regex.gdb diff --git a/debug/examine_regex.gdb b/debug/examine_regex.gdb new file mode 100644 index 0000000..be75fa3 --- /dev/null +++ b/debug/examine_regex.gdb @@ -0,0 +1,3 @@ +break regex_assert +run < tests/comment.input +print * regex diff --git a/debug/regex.pretty_print.py b/debug/regex.pretty_print.py index d18ca89..43f3646 100644 --- a/debug/regex.pretty_print.py +++ b/debug/regex.pretty_print.py @@ -27,7 +27,7 @@ class RegexPrinter: # Offshoot offshoot_t_ptr_ptr = gdb.lookup_type("offshoot_t").pointer().pointer() dt = self.val['catch_table'] - s += "offshoot_table = {\n" + s += "offshoot_table = { \n" for i in range(0, dt['element_count']): s += "\t" s += (