Replace the block_found global with explicit data-flow
[deliverable/binutils-gdb.git] / gdb / python / py-symbol.c
index 4306f61113dbca9b9a0ba31d4104d0068f5d3c62..401e7e98bc5c68beaa23e55926ce56d36dd4e256 100644 (file)
@@ -396,7 +396,7 @@ gdbpy_lookup_symbol (PyObject *self, PyObject *args, PyObject *kw)
 
   TRY
     {
-      symbol = lookup_symbol (name, block, domain, &is_a_field_of_this);
+      symbol = lookup_symbol (name, block, domain, &is_a_field_of_this).symbol;
     }
   CATCH (except, RETURN_MASK_ALL)
     {
@@ -449,7 +449,7 @@ gdbpy_lookup_global_symbol (PyObject *self, PyObject *args, PyObject *kw)
 
   TRY
     {
-      symbol = lookup_global_symbol (name, NULL, domain);
+      symbol = lookup_global_symbol (name, NULL, domain).symbol;
     }
   CATCH (except, RETURN_MASK_ALL)
     {
This page took 0.02533 seconds and 4 git commands to generate.