0N/A# Patch required for Solaris.
0N/A# Will contribute upstream if possible; will need to #ifdef SOLARIS.
0N/A /* If this is a read-write cache, which thread's registers is
0N/A+ /* Is this a corefile regcache or a live process */
0N/A static struct regcache *
0N/A regcache = XNEW (struct regcache);
0N/A regcache->descr = descr;
0N/A regcache->readonly_p = readonly_p;
0N/A+ regcache->from_corefile = 0;
0N/A@@ -1557,3 +1560,18 @@
0N/A &maintenanceprintlist);
0N/A+set_regcache_from_corefile (struct regcache *regcache)
0N/A+ gdb_assert (regcache != NULL);
0N/A+ regcache->from_corefile = 1;
0N/A+regcache_from_corefile (const struct regcache *regcache)
0N/A+ gdb_assert (regcache != NULL);
0N/A+ return regcache->from_corefile;