Remove some code duplication in py-objfile.c, py-progspace.c.
[binutils-gdb.git] / gdb / regcache.c
index 05b8fb9f98b0cc5b337b9ecec0ab21a3db42462d..e6b6f890f50bc0cff4ead4c6764229922698d3b3 100644 (file)
@@ -25,7 +25,6 @@
 #include "regcache.h"
 #include "reggroups.h"
 #include "observer.h"
-#include "exceptions.h"
 #include "remote.h"
 #include "valprint.h"
 #include "regset.h"
@@ -536,6 +535,13 @@ get_current_regcache (void)
   return get_thread_regcache (inferior_ptid);
 }
 
+/* See common/common-regcache.h.  */
+
+struct regcache *
+get_thread_regcache_for_ptid (ptid_t ptid)
+{
+  return get_thread_regcache (ptid);
+}
 
 /* Observer for the target_changed event.  */