gdb: New API for tracking innermost block
[deliverable/binutils-gdb.git] / gdb / go-exp.y
index 2eb69d1c1dd0d2db16ffdee8282dd82a20a28f1b..a96e65534fdf5ec96a0b0da5eeb9da83d07223b9 100644 (file)
@@ -552,12 +552,7 @@ variable:  name_not_typename
                          if (sym.symbol)
                            {
                              if (symbol_read_needs_frame (sym.symbol))
-                               {
-                                 if (innermost_block == 0
-                                     || contained_in (sym.block,
-                                                      innermost_block))
-                                   innermost_block = sym.block;
-                               }
+                               innermost_block.update (sym);
 
                              write_exp_elt_opcode (pstate, OP_VAR_VALUE);
                              write_exp_elt_block (pstate, sym.block);
This page took 0.024241 seconds and 4 git commands to generate.