]> git.xolatile.top Git - public-libhl.git/commitdiff
gdb stuff
authoranon <anon@anon.anon>
Mon, 28 Aug 2023 13:38:43 +0000 (15:38 +0200)
committeranon <anon@anon.anon>
Mon, 28 Aug 2023 13:38:43 +0000 (15:38 +0200)
debug/examine_regex.gdb [new file with mode: 0644]
debug/regex.pretty_print.py

diff --git a/debug/examine_regex.gdb b/debug/examine_regex.gdb
new file mode 100644 (file)
index 0000000..be75fa3
--- /dev/null
@@ -0,0 +1,3 @@
+break regex_assert
+run < tests/comment.input
+print * regex
index d18ca89f6655942891c9493ea8a8a57a32098dfd..43f3646bbcc26299b6369c5228fbb3abcd171b14 100644 (file)
@@ -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 += (