Move innermost_block_tracker global to parse_state
[deliverable/binutils-gdb.git] / gdb / c-exp.y
index 627ea1f3baeb4f15ebb585961f0ea13857f3b679..e1a17b5628a99102fdadbfc3162b9eecba71243b 100644 (file)
@@ -1002,8 +1002,7 @@ variable: block COLONCOLON name
                            error (_("No symbol \"%s\" in specified context."),
                                   copy_name ($3));
                          if (symbol_read_needs_frame (sym.symbol))
-
-                           innermost_block.update (sym);
+                           pstate->block_tracker->update (sym);
 
                          write_exp_elt_opcode (pstate, OP_VAR_VALUE);
                          write_exp_elt_block (pstate, sym.block);
@@ -1092,7 +1091,7 @@ variable: name_not_typename
                          if (sym.symbol)
                            {
                              if (symbol_read_needs_frame (sym.symbol))
-                               innermost_block.update (sym);
+                               pstate->block_tracker->update (sym);
 
                              /* If we found a function, see if it's
                                 an ifunc resolver that has the same
@@ -1116,7 +1115,7 @@ variable: name_not_typename
                              /* C++: it hangs off of `this'.  Must
                                 not inadvertently convert from a method call
                                 to data ref.  */
-                             innermost_block.update (sym);
+                             pstate->block_tracker->update (sym);
                              write_exp_elt_opcode (pstate, OP_THIS);
                              write_exp_elt_opcode (pstate, OP_THIS);
                              write_exp_elt_opcode (pstate, STRUCTOP_PTR);
This page took 0.025133 seconds and 4 git commands to generate.