aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 14:51:24 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:16 -0700
commite18312bb596fcc9b4df1d018038690df28a68b46 (patch)
treed2df2b9d51a0f2e46c4f014e1554a8b73ffb8e00 /gdb/value.c
parentefaf1ae025cbef5438d2fe943dd010b773d757ac (diff)
downloadgdb-e18312bb596fcc9b4df1d018038690df28a68b46.zip
gdb-e18312bb596fcc9b4df1d018038690df28a68b46.tar.gz
gdb-e18312bb596fcc9b4df1d018038690df28a68b46.tar.bz2
Fully qualify calls to copy in value.c
A coming patch will add value::copy, so this namespace-qualifies existing calls to 'copy' in value.c, to ensure it will still compile after that change is done. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 23453e8..8044442 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1216,7 +1216,7 @@ value_contents_copy_raw (struct value *dst, LONGEST dst_offset,
gdb::array_view<const gdb_byte> src_contents
= src->contents_all_raw ().slice (src_offset * unit_size,
length * unit_size);
- copy (src_contents, dst_contents);
+ gdb::copy (src_contents, dst_contents);
/* Copy the meta-data, adjusted. */
src_bit_offset = src_offset * unit_size * HOST_CHAR_BIT;
@@ -1562,7 +1562,7 @@ value_copy (const value *arg)
gdb::array_view<gdb_byte> val_contents
= val->contents_all_raw ().slice (0, length);
- copy (arg_view, val_contents);
+ gdb::copy (arg_view, val_contents);
}
if (VALUE_LVAL (val) == lval_computed)
@@ -1604,7 +1604,7 @@ value_non_lval (struct value *arg)
struct type *enc_type = arg->enclosing_type ();
struct value *val = value::allocate (enc_type);
- copy (arg->contents_all (), val->contents_all_raw ());
+ gdb::copy (arg->contents_all (), val->contents_all_raw ());
val->m_type = arg->m_type;
val->set_embedded_offset (arg->embedded_offset ());
val->set_pointed_to_offset (arg->pointed_to_offset ());