* dwarf2loc.c (dwarf_expr_tls_address): Mark addr as volatile.

* varobj.c (my_value_equal): Mark val2 as volatile.
This commit is contained in:
Mark Kettenis 2005-03-20 20:30:35 +00:00
parent ee426e0ff6
commit 4dd0443396
3 changed files with 5 additions and 2 deletions

View File

@ -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>

View File

@ -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 ())
{

View File

@ -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;