Do not pass NULL for the string in catch_errors
[deliverable/binutils-gdb.git] / gdb / m2-exp.y
index 633c354869153f02a7ba56e910450ef72eb858fa..360fdea1aa24bc9ad2cfddfdcfcccd0c4980571d 100644 (file)
@@ -637,10 +637,7 @@ variable:  NAME
                                }
 
                              write_exp_elt_opcode (pstate, 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 (pstate, NULL);
+                             write_exp_elt_block (pstate, sym.block);
                              write_exp_elt_sym (pstate, sym.symbol);
                              write_exp_elt_opcode (pstate, OP_VAR_VALUE);
                            }
This page took 0.02328 seconds and 4 git commands to generate.