Replace call to value_contents_raw by call to value_contents.

This is something that Tom spotted.  It shouldn't make much of a difference
in practice with the current code, but Tom is planning on making some
changes (bitwise optimized-out tracking) in value_contents...

2010-05-27  Joel Brobecker  <brobecker@adacore.com>

        * ada-lang.c (ensure_lval): Replace call to value_contents_raw
        by call to value_contents.
This commit is contained in:
Joel Brobecker 2010-05-27 17:37:45 +00:00
parent 5a2e11c715
commit 12b795ad7b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-05-27 Joel Brobecker <brobecker@adacore.com>
* ada-lang.c (ensure_lval): Replace call to value_contents_raw
by call to value_contents.
2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
* MAINTAINERS: Add myself for write after approval privileges.

View File

@ -3884,7 +3884,7 @@ ensure_lval (struct value *val, struct gdbarch *gdbarch, CORE_ADDR *sp)
}
VALUE_LVAL (val) = lval_memory;
write_memory (value_address (val), value_contents_raw (val), len);
write_memory (value_address (val), value_contents (val), len);
}
return val;