Skip to content
Snippets Groups Projects
Verified Commit 42ea2aac authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Fix typo

parent 89a1a4d2
Branches
No related tags found
Loading
# GDB pretty-printer for ExprNode class hierarchy # GDB pretty-printer for ExprNode class hierarchy
# Copyright © 2022 Dynare Team # Copyright © 2022-2023 Dynare Team
# #
# This file is part of Dynare. # This file is part of Dynare.
# #
...@@ -44,7 +44,7 @@ class ExprNodePrinterControl(gdb.printing.PrettyPrinter): ...@@ -44,7 +44,7 @@ class ExprNodePrinterControl(gdb.printing.PrettyPrinter):
def __call__(self, val): def __call__(self, val):
# Check if the value is a subtype of ExprNode *. # Check if the value is a subtype of ExprNode *.
# Doing a dynamic_cast on a non-pointer type triggers an exception, so we first check # Doing a dynamic_cast on a non-pointer type triggers an exception, so we first check
# whethe it’s a pointer (after resolving for typedefs, such as “expr_t”). # whether it’s a pointer (after resolving for typedefs, such as “expr_t”).
if val.type.strip_typedefs().code == gdb.TYPE_CODE_PTR and val.dynamic_cast(gdb.lookup_type('ExprNode').pointer()) != 0: if val.type.strip_typedefs().code == gdb.TYPE_CODE_PTR and val.dynamic_cast(gdb.lookup_type('ExprNode').pointer()) != 0:
return ExprNodePrinter(val) return ExprNodePrinter(val)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment