X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fregcache.h;h=7fcc43a83c56c05d95eec55c029a5b4504ac3477;hb=222312d359fe0a68f8583ba315583ee8cc94f252;hp=d7bb8b5c932a6447d4a7d3d93f211a019a6bf004;hpb=1869e86f2eb13a9e1d1c42b97cdb98fef88afd83;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/regcache.h b/gdb/regcache.h index d7bb8b5c93..7fcc43a83c 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -35,10 +35,6 @@ extern struct regcache *get_thread_arch_aspace_regcache (ptid_t, struct gdbarch *, struct address_space *); -/* Return REGCACHE's ptid. */ - -extern ptid_t regcache_get_ptid (const struct regcache *regcache); - enum register_status regcache_register_status (const struct regcache *regcache, int regnum); @@ -357,8 +353,12 @@ public: void collect_regset (const struct regset *regset, int regnum, void *buf, size_t size) const; + /* Return REGCACHE's ptid. */ + ptid_t ptid () const { + gdb_assert (m_ptid != minus_one_ptid); + return m_ptid; }