From 1bcd78a7c773bcd8bea3e2c25b72afb9a36286b3 Mon Sep 17 00:00:00 2001 From: anon Date: Sun, 27 Aug 2023 23:31:02 +0200 Subject: [PATCH] gdb stuff --- .gdbinit | 1 + debug/regex.pretty_print.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gdbinit 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"