aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Riss <frederic.riss@st.com>2006-07-24 20:10:48 +0000
committerFrederic Riss <frederic.riss@st.com>2006-07-24 20:10:48 +0000
commitb05e64e5fe26950eba7f895b31019b8cc598b42d (patch)
tree2b9c18a749ebd90b346c780f99f3b6ac8a04e382
parent3f64f7b1c773929215cd1284c891f371e4fc625f (diff)
downloadgdb-b05e64e5fe26950eba7f895b31019b8cc598b42d.zip
gdb-b05e64e5fe26950eba7f895b31019b8cc598b42d.tar.gz
gdb-b05e64e5fe26950eba7f895b31019b8cc598b42d.tar.bz2
2006-07-21 Frederic Riss <frederic.riss@st.com>
* regcache.c (struct regcache): Make register_valid_p a signed char array.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/regcache.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 062c2b9..ebb2450 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2006-07-21 Frederic Riss <frederic.riss@st.com>
+
+ * regcache.c (struct regcache): Make register_valid_p a signed char
+ array.
+
2006-07-24 Jan Kratochvil <jan.kratochvil@redhat.com>
Daniel Jacobowitz <dan@codesourcery.com>
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 8701d8d..95bec94 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -186,7 +186,11 @@ struct regcache
full [0 .. NUM_REGS + NUM_PSEUDO_REGS) while a read/write
register cache can only hold [0 .. NUM_REGS). */
gdb_byte *registers;
- gdb_byte *register_valid_p;
+ /* Register cache status:
+ register_valid_p[REG] == 0 if REG value is not in the cache
+ > 0 if REG value is in the cache
+ < 0 if REG value is permanently unavailable */
+ signed char *register_valid_p;
/* Is this a read-only cache? A read-only cache is used for saving
the target's register state (e.g, across an inferior function
call or just before forcing a function return). A read-only