6418N/A# Patch required for Solaris.
6418N/A# Will contribute upstream if possible; will need to #ifdef SOLARIS.
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 */
6418N/A regcache = XNEW (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;