This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/ada] Replace call to value_contents_raw by call to value_contents.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Cc: Joel Brobecker <brobecker at adacore dot com>
- Date: Thu, 27 May 2010 10:39:13 -0700
- Subject: [commit/ada] Replace call to value_contents_raw by call to value_contents.
Hello,
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.
Tested on x86_64-linux. Checked in.
---
gdb/ChangeLog | 5 +++++
gdb/ada-lang.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bc7d651..f749c08 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 2391cd6..09b7102 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -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;
--
1.7.1