equal
deleted
inserted
replaced
|
1 --- gdb-7.6/gdb/regcache.c 2013-03-07 10:59:54.000000000 -0800 |
|
2 +++ gdb-7.6/gdb/regcache.c 2013-10-06 14:00:22.264723200 -0700 |
|
3 @@ -206,6 +206,8 @@ |
|
4 /* If this is a read-write cache, which thread's registers is |
|
5 it connected to? */ |
|
6 ptid_t ptid; |
|
7 + /* Is this a corefile regcache or a live process */ |
|
8 + int from_corefile; |
|
9 }; |
|
10 |
|
11 static struct regcache * |
|
12 @@ -220,6 +222,7 @@ |
|
13 regcache = XMALLOC (struct regcache); |
|
14 regcache->descr = descr; |
|
15 regcache->readonly_p = readonly_p; |
|
16 + regcache->from_corefile = 0; |
|
17 if (readonly_p) |
|
18 { |
|
19 regcache->registers |
|
20 @@ -1435,3 +1438,18 @@ |
|
21 &maintenanceprintlist); |
|
22 |
|
23 } |
|
24 + |
|
25 +int |
|
26 +set_regcache_from_corefile (struct regcache *regcache) |
|
27 +{ |
|
28 + gdb_assert (regcache != NULL); |
|
29 + regcache->from_corefile = 1; |
|
30 +} |
|
31 + |
|
32 +int |
|
33 +regcache_from_corefile (const struct regcache *regcache) |
|
34 +{ |
|
35 + gdb_assert (regcache != NULL); |
|
36 + return regcache->from_corefile; |
|
37 +} |
|
38 + |