From: anon Date: Sun, 27 Aug 2023 21:31:02 +0000 (+0200) Subject: gdb stuff X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=1bcd78a7c773bcd8bea3e2c25b72afb9a36286b3;p=public-libhl.git gdb stuff --- diff --git a/.gdbinit b/.gdbinit new file mode 100644 index 0000000..c2e236b --- /dev/null +++ b/.gdbinit @@ -0,0 +1 @@ +source debug/regex.pretty_print.py diff --git a/debug/regex.pretty_print.py b/debug/regex.pretty_print.py index 86ac1b0..d18ca89 100644 --- a/debug/regex.pretty_print.py +++ b/debug/regex.pretty_print.py @@ -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"