]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
fixup! gdb, ada: update ada_lookup_simple_minsym
authorMarkus Metzger <markus.t.metzger@intel.com>
Tue, 19 Jul 2022 06:05:25 +0000 (08:05 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Tue, 18 Oct 2022 12:16:10 +0000 (14:16 +0200)
remove get_selected_block()

gdb/ada-exp.y

index 3ec9e4d610c20a5ef791008bc3bf6606271e22b4..7b4d6cc64848375fdfeeb2d38deae0c1f4a2d7d7 100644 (file)
@@ -1698,9 +1698,6 @@ write_var_or_type (struct parser_state *par_state,
            }
          else if (syms.empty ())
            {
-             if (block == nullptr)
-               block = get_selected_block (nullptr);
-
              struct objfile *objfile = nullptr;
              if (block != nullptr)
                objfile = block_objfile (block);