gdb stuff

This commit is contained in:
anon 2023-08-27 23:31:02 +02:00
parent 9c51f90f10
commit 1bcd78a7c7
2 changed files with 2 additions and 1 deletions

1
.gdbinit Normal file
View File

@ -0,0 +1 @@
source debug/regex.pretty_print.py

View File

@ -26,7 +26,7 @@ class RegexPrinter:
s += "\n },\n"
# Offshoot
offshoot_t_ptr_ptr = gdb.lookup_type("offshoot_t").pointer().pointer()
dt = self.val['delta_table']
dt = self.val['catch_table']
s += "offshoot_table = {\n"
for i in range(0, dt['element_count']):
s += "\t"