aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r--gdb/c-lang.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index 98250f5..2a7dd4d 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -302,7 +302,7 @@ c_get_string (struct value *value, gdb::unique_xmalloc_ptr<gdb_byte> *buffer,
&& (*length < 0 || *length <= fetchlimit))
{
int i;
- const gdb_byte *contents = value_contents (value);
+ const gdb_byte *contents = value_contents (value).data ();
/* If a length is specified, use that. */
if (*length >= 0)
@@ -675,7 +675,7 @@ c_string_operation::evaluate (struct type *expect_type,
error (_("Too many array elements"));
result = allocate_value (expect_type);
- memcpy (value_contents_raw (result), obstack_base (&output),
+ memcpy (value_contents_raw (result).data (), obstack_base (&output),
obstack_object_size (&output));
}
else