Skip to content
Snippets Groups Projects
Commit b48e918e authored by pompolic's avatar pompolic
Browse files

Remove attempt to use parse_state_stack

parent c0c755f5
No related branches found
No related tags found
No related merge requests found
......@@ -84,11 +84,6 @@ class HDoParseRetBreakpoint(gdb.Breakpoint):
# ast_manager.set_top_node(ret_val)
# ast_manager.print_ast()
# warning: this is a mess
# This should go in the want_ast block below, logically,
# but return_from_h_do_parse() pops the last parse_state off the stack, but that's not the "snapshot" we want to pass in to ast_manager
# TODO: this is wrong. we need the parse_states from deeper into the call stack, and this only preserves the last one before return
parse_state_stack = top_level_parse.parse_state_stack.copy()
top_level_parse.return_from_h_do_parse(parse_state, parser, ret_val)
# Checking want_result_of() here avoids instantiating a HParseResult every time h_do_parse returns
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment