From b0bb688268d260de64be4da78a359218c42668e7 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 b122009..95035d5 100644 --- a/gdb-port/hammer-breakpoints.py +++ b/gdb-port/hammer-breakpoints.py @@ -136,7 +136,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