DWARF: handle non-local references in nested functions
[deliverable/binutils-gdb.git] / gdb / jv-exp.y
index 49998487eb8dd58cc01cd1406eba3596ef779a39..60b7d2e4e0aa830290e95ad8e4d16b958c150050 100644 (file)
@@ -1284,9 +1284,7 @@ push_variable (struct parser_state *par_state, struct stoken name)
        }
 
       write_exp_elt_opcode (par_state, OP_VAR_VALUE);
-      /* We want to use the selected frame, not another more inner frame
-        which happens to be in the same block.  */
-      write_exp_elt_block (par_state, NULL);
+      write_exp_elt_block (par_state, sym.block);
       write_exp_elt_sym (par_state, sym.symbol);
       write_exp_elt_opcode (par_state, OP_VAR_VALUE);
       return 1;
This page took 0.029717 seconds and 4 git commands to generate.