From 77405206ef8b8911c839e96987d04f5155d20412 Mon Sep 17 00:00:00 2001 From: pompolic <pompolic@special-circumstanc.es> Date: Wed, 25 Jan 2023 14:18:50 +0100 Subject: [PATCH] Filter locals to HParser*s (finally) --- gdb-port/hammer-breakpoints.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb-port/hammer-breakpoints.py b/gdb-port/hammer-breakpoints.py index 9f225e1..2e26ae6 100644 --- a/gdb-port/hammer-breakpoints.py +++ b/gdb-port/hammer-breakpoints.py @@ -159,7 +159,7 @@ class HRuleBreakpoint(gdb.Breakpoint): parser_type = gdb.lookup_type("HParser").pointer() for p in block: - # GDB (Debian 10.1-2) with python 3.9 crashes when trying to compare these two, but doing this would filter out locals that aren't parsers - #if p.type == parser_type: - top_level_parse.parser_objs[int(p.value(frame))] = Parser(p.name, int(p.value(frame))) + # GDB (Debian 10.1-2) with python 3.9 crashes when trying to compare these two, but doing this filters out locals that aren't parsers + if p.type == parser_type: + top_level_parse.parser_objs[int(p.value(frame))] = Parser(p.name, int(p.value(frame))) -- GitLab