diff options
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 0728a03..58d4f56 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -215,6 +215,16 @@ struct regcache ptid_t ptid; }; +/* See regcache.h. */ + +ptid_t +regcache_get_ptid (const struct regcache *regcache) +{ + gdb_assert (!ptid_equal (regcache->ptid, minus_one_ptid)); + + return regcache->ptid; +} + static struct regcache * regcache_xmalloc_1 (struct gdbarch *gdbarch, struct address_space *aspace, int readonly_p) |