From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id D53623858C2C; Mon, 13 Feb 2023 22:30:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D53623858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676327411; bh=Rp5sTB/R93LWhyaqnnXK6udUhv27iz29AlpLeSFbBAk=; h=From:To:Subject:Date:From; b=ciUpk9HbRovvg9Wxy+nh/ez5XbTblhx5yyubXo95okcH4bpwYj3Sex9yho6KkGRYy ZqOPcwj9wX0OE0Otx6SoiAjFDmlW7kQMGG1P0iDlegihEovjeovybf76AsDLvcv8hO 8fDRq4ut3TgCeZS5W6CGab+aGOB6XHsQFejNDnRo= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Fully qualify calls to copy in value.c X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: efaf1ae025cbef5438d2fe943dd010b773d757ac X-Git-Newrev: e18312bb596fcc9b4df1d018038690df28a68b46 Message-Id: <20230213223011.D53623858C2C@sourceware.org> Date: Mon, 13 Feb 2023 22:30:11 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3De18312bb596f= cc9b4df1d018038690df28a68b46 commit e18312bb596fcc9b4df1d018038690df28a68b46 Author: Tom Tromey Date: Tue Jan 31 14:51:24 2023 -0700 Fully qualify calls to copy in value.c =20 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. =20 Approved-By: Simon Marchi Diff: --- gdb/value.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/value.c b/gdb/value.c index 23453e82ce5..804444221ba 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1216,7 +1216,7 @@ value_contents_copy_raw (struct value *dst, LONGEST d= st_offset, gdb::array_view src_contents =3D src->contents_all_raw ().slice (src_offset * unit_size, length * unit_size); - copy (src_contents, dst_contents); + gdb::copy (src_contents, dst_contents); =20 /* Copy the meta-data, adjusted. */ src_bit_offset =3D src_offset * unit_size * HOST_CHAR_BIT; @@ -1562,7 +1562,7 @@ value_copy (const value *arg) gdb::array_view val_contents =3D val->contents_all_raw ().slice (0, length); =20 - copy (arg_view, val_contents); + gdb::copy (arg_view, val_contents); } =20 if (VALUE_LVAL (val) =3D=3D lval_computed) @@ -1604,7 +1604,7 @@ value_non_lval (struct value *arg) struct type *enc_type =3D arg->enclosing_type (); struct value *val =3D value::allocate (enc_type); =20 - copy (arg->contents_all (), val->contents_all_raw ()); + gdb::copy (arg->contents_all (), val->contents_all_raw ()); val->m_type =3D arg->m_type; val->set_embedded_offset (arg->embedded_offset ()); val->set_pointed_to_offset (arg->pointed_to_offset ());