target_stack -> current_top_target() throughout
[deliverable/binutils-gdb.git] / gdb / infcall.c
index b13f5b61d96e84f5cc892d2f1a834169a0f1ec2b..c20ab6f877124c534f90b9a2cbe72f848f23ba10 100644 (file)
@@ -256,7 +256,7 @@ find_function_addr (struct value *function,
       if (TYPE_CODE (ftype) == TYPE_CODE_FUNC
          || TYPE_CODE (ftype) == TYPE_CODE_METHOD)
        funaddr = gdbarch_convert_from_func_ptr_addr (gdbarch, funaddr,
-                                                     target_stack);
+                                                     current_top_target ());
     }
   if (TYPE_CODE (ftype) == TYPE_CODE_FUNC
       || TYPE_CODE (ftype) == TYPE_CODE_METHOD)
@@ -307,8 +307,9 @@ find_function_addr (struct value *function,
 
              funaddr = value_as_address (value_addr (function));
              nfunaddr = funaddr;
-             funaddr = gdbarch_convert_from_func_ptr_addr (gdbarch, funaddr,
-                                                           target_stack);
+             funaddr
+               = gdbarch_convert_from_func_ptr_addr (gdbarch, funaddr,
+                                                     current_top_target ());
              if (funaddr != nfunaddr)
                found_descriptor = 1;
            }
This page took 0.025191 seconds and 4 git commands to generate.