gdb.gdb.regcache.c.patch revision 2074
2074N/A--- gdb-7.6/gdb/regcache.c 2013-03-07 10:59:54.000000000 -0800
2074N/A+++ gdb-7.6/gdb/regcache.c 2013-10-06 14:00:22.264723200 -0700
2074N/A@@ -206,6 +206,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 *
2074N/A@@ -220,6 +222,7 @@
2074N/A regcache = XMALLOC (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
2074N/A@@ -1435,3 +1438,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+