gdb stuff

This commit is contained in:
anon 2023-08-28 15:38:43 +02:00
parent 1bcd78a7c7
commit 593ba59cc4
2 changed files with 4 additions and 1 deletions

3
debug/examine_regex.gdb Normal file
View File

@ -0,0 +1,3 @@
break regex_assert
run < tests/comment.input
print * regex

View 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 += (