aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 536322b..1bc4f0d 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -19,6 +19,7 @@
#include "defs.h"
#include "inferior.h"
+#include "gdbthread.h"
#include "target.h"
#include "gdbarch.h"
#include "gdbcmd.h"
@@ -390,10 +391,18 @@ get_thread_regcache (ptid_t ptid)
return get_thread_arch_regcache (ptid, current_thread_arch);
}
+/* See regcache.h. */
+
+struct regcache *
+get_thread_regcache (thread_info *thread)
+{
+ return get_thread_regcache (thread->ptid);
+}
+
struct regcache *
get_current_regcache (void)
{
- return get_thread_regcache (inferior_ptid);
+ return get_thread_regcache (inferior_thread ());
}
/* See common/common-regcache.h. */
@@ -466,6 +475,14 @@ registers_changed_ptid (ptid_t ptid)
}
}
+/* See regcache.h. */
+
+void
+registers_changed_thread (thread_info *thread)
+{
+ registers_changed_ptid (thread->ptid);
+}
+
void
registers_changed (void)
{