Use thread_info and inferior pointers more throughout
[deliverable/binutils-gdb.git] / gdb / compile / compile-object-load.c
index fac16d70ddee367e27bfb09f0f7f624532ac3c88..9b3c51fe288dcdb9e7165d468d83fd8d4f6bcc16 100644 (file)
@@ -28,6 +28,7 @@
 #include "gdbcmd.h"
 #include "regcache.h"
 #include "inferior.h"
+#include "gdbthread.h"
 #include "compile.h"
 #include "block.h"
 #include "arch-utils.h"
@@ -554,8 +555,9 @@ get_regs_type (struct symbol *func_sym, struct objfile *objfile)
 static void
 store_regs (struct type *regs_type, CORE_ADDR regs_base)
 {
+  thread_info *thread = inferior_thread ();
   struct gdbarch *gdbarch = target_gdbarch ();
-  struct regcache *regcache = get_thread_regcache (inferior_ptid);
+  struct regcache *regcache = get_thread_regcache (thread);
   int fieldno;
 
   for (fieldno = 0; fieldno < TYPE_NFIELDS (regs_type); fieldno++)
This page took 0.029851 seconds and 4 git commands to generate.