2074N/A /* If this is a read-write cache, which thread's registers is
2074N/A+ /* Is this a corefile regcache or a live process */
2074N/A regcache = XMALLOC (struct regcache);
2074N/A regcache->readonly_p = readonly_p;
2074N/A+ regcache->from_corefile = 0;
2074N/A+set_regcache_from_corefile (struct regcache *regcache)
2074N/A+ gdb_assert (regcache != NULL);
2074N/A+ regcache->from_corefile = 1;
2074N/A+regcache_from_corefile (const struct regcache *regcache)
2074N/A+ gdb_assert (regcache != NULL);
2074N/A+ return regcache->from_corefile;