summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-03-20 20:30:35 +0000
committerMark Kettenis <kettenis@gnu.org>2005-03-20 20:30:35 +0000
commit49ea02cc21c1c8448824a0b3c5def4225e2e7057 (patch)
tree74ea2d8bc2c2a9caa21f94afe2a5d012f1a32a93
parent01b39e850f97ff4827b9ffc7c7852a69a1729947 (diff)
downloadgdb-49ea02cc21c1c8448824a0b3c5def4225e2e7057.tar.gz
* dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
* varobj.c (my_value_equal): Mark val2 as volatile.
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/dwarf2loc.c2
-rw-r--r--gdb/varobj.c2
3 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dd0b614fc86..05a32dec361 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
2005-03-20 Mark Kettenis <kettenis@gnu.org>
+ * dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.
+ * varobj.c (my_value_equal): Mark val2 as volatile.
+
* cp-names.y: Add prototype for yyparse.
2005-03-19 Daniel Jacobowitz <dan@codesourcery.com>
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c
index d9b1271ad48..20bb65ca939 100644
--- a/gdb/dwarf2loc.c
+++ b/gdb/dwarf2loc.c
@@ -186,7 +186,7 @@ static CORE_ADDR
dwarf_expr_tls_address (void *baton, CORE_ADDR offset)
{
struct dwarf_expr_baton *debaton = (struct dwarf_expr_baton *) baton;
- CORE_ADDR addr = 0;
+ volatile CORE_ADDR addr = 0;
if (target_get_thread_local_address_p ())
{
diff --git a/gdb/varobj.c b/gdb/varobj.c
index 019af9e6bf8..23c2a51df72 100644
--- a/gdb/varobj.c
+++ b/gdb/varobj.c
@@ -1450,7 +1450,7 @@ variable_default_display (struct varobj *var)
can't be established, *ERROR2 is set to non-zero. */
static int
-my_value_equal (struct value *val1, struct value *val2, int *error2)
+my_value_equal (struct value *val1, struct value *volatile val2, int *error2)
{
volatile struct exception except;