Remove regcache_get_ptid
[deliverable/binutils-gdb.git] / gdb / regcache.h
index d7bb8b5c932a6447d4a7d3d93f211a019a6bf004..7fcc43a83c56c05d95eec55c029a5b4504ac3477 100644 (file)
@@ -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;
   }
 
This page took 0.024879 seconds and 4 git commands to generate.