6418N/A# Patch required for Solaris.
6418N/A# Will contribute upstream if possible; will need to #ifdef SOLARIS.
6418N/A
6418N/A--- gdb-7.11-orig/gdb/regcache.c Tue Feb 9 19:19:39 2016
6418N/A+++ gdb-7.11/gdb/regcache.c Thu Mar 10 16:31:27 2016
6418N/A@@ -213,6 +213,8 @@
2074N/A /* If this is a read-write cache, which thread's registers is
2074N/A it connected to? */
2074N/A ptid_t ptid;
2074N/A+ /* Is this a corefile regcache or a live process */
2074N/A+ int from_corefile;
2074N/A };
2074N/A
2074N/A static struct regcache *
6418N/A@@ -227,6 +229,7 @@
6418N/A regcache = XNEW (struct regcache);
2074N/A regcache->descr = descr;
2074N/A regcache->readonly_p = readonly_p;
2074N/A+ regcache->from_corefile = 0;
2074N/A if (readonly_p)
2074N/A {
2074N/A regcache->registers
6418N/A@@ -1557,3 +1560,18 @@
2074N/A &maintenanceprintlist);
2074N/A
2074N/A }
2074N/A+
2074N/A+int
2074N/A+set_regcache_from_corefile (struct regcache *regcache)
2074N/A+{
2074N/A+ gdb_assert (regcache != NULL);
2074N/A+ regcache->from_corefile = 1;
2074N/A+}
2074N/A+
2074N/A+int
2074N/A+regcache_from_corefile (const struct regcache *regcache)
2074N/A+{
2074N/A+ gdb_assert (regcache != NULL);
2074N/A+ return regcache->from_corefile;
2074N/A+}
2074N/A+