Have block_innermost_frame start from selected frame and document.
[deliverable/binutils-gdb.git] / gdb / objc-exp.y
index 346b404181d6bbd90698c8f64475cab34d6a90a8..b43ba666d9a2e61fd1bdb3e967c348fbc0ce4173 100644 (file)
@@ -648,6 +648,13 @@ variable:  block COLONCOLON name
                          if (sym == 0)
                            error (_("No symbol \"%s\" in specified context."),
                                   copy_name ($3));
+                         if (symbol_read_needs_frame (sym))
+                           {
+                             if (innermost_block == 0
+                                 || contained_in (block_found,
+                                                  innermost_block))
+                               innermost_block = block_found;
+                           }
 
                          write_exp_elt_opcode (OP_VAR_VALUE);
                          /* block_found is set by lookup_symbol.  */
This page took 0.025659 seconds and 4 git commands to generate.