Do not pass NULL for the string in catch_errors
[deliverable/binutils-gdb.git] / gdb / d-exp.y
index 9e84a47de0fa4b0c5b38575b06ec17d730b4bb52..0481b14d5ffb0ddecc8b59d5d663c593a91b1671 100644 (file)
@@ -487,9 +487,7 @@ PrimaryExpression:
                        }
 
                      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.023394 seconds and 4 git commands to generate.