From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 6DC9E385DC3A; Sat, 9 Mar 2024 00:27:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6DC9E385DC3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709944039; bh=X39YeFkJsJo6URhijzQZk25cPmczNVieZFhAJSPk8ME=; h=From:To:Subject:Date:From; b=cPHy/jz6aBAn9bS+bXky6PFq9p6uMCpsJq57iKfa6zKx4Jlo1svcYrYI8hbLsXzFB g8LECEDOHMDWLgAM5JA93vDhNbWitOm3JJgDm2E68ne7XjHK2yDSrY0X45AV7KAywP SFNY3jUf4rJrFUP2S+qYkomDy5G/N5PMOK6F9W4U= 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] Rename members of index_cache_store_context X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 0d3e7c8b720f22f2c71ecca0c77f6622b2fcbc6f X-Git-Newrev: 71d67416e78682933f3621a870ee10376ba14fbd Message-Id: <20240309002719.6DC9E385DC3A@sourceware.org> Date: Sat, 9 Mar 2024 00:27:19 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D71d67416e786= 82933f3621a870ee10376ba14fbd commit 71d67416e78682933f3621a870ee10376ba14fbd Author: Tom Tromey Date: Sat Jan 27 08:51:10 2024 -0700 Rename members of index_cache_store_context =20 This renames the private members of index_cache_store_context to start with "m_". Diff: --- gdb/dwarf2/index-cache.c | 10 +++++----- gdb/dwarf2/index-cache.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gdb/dwarf2/index-cache.c b/gdb/dwarf2/index-cache.c index 7ddd7b3f974..645e36c66f7 100644 --- a/gdb/dwarf2/index-cache.c +++ b/gdb/dwarf2/index-cache.c @@ -104,7 +104,7 @@ index_cache_store_context::index_cache_store_context (c= onst index_cache &ic, m_enabled =3D false; return; } - build_id_str =3D build_id_to_string (build_id); + m_build_id_str =3D build_id_to_string (build_id); =20 /* Get build id of dwz file, if present. */ const dwz_file *dwz =3D dwarf2_get_dwz_file (per_bfd); @@ -121,7 +121,7 @@ index_cache_store_context::index_cache_store_context (c= onst index_cache &ic, return; } =20 - dwz_build_id_str =3D build_id_to_string (dwz_build_id); + m_dwz_build_id_str =3D build_id_to_string (dwz_build_id); } =20 if (ic.m_dir.empty ()) @@ -159,8 +159,8 @@ index_cache::store (dwarf2_per_bfd *per_bfd, if (!ctx.m_enabled) return; =20 - const char *dwz_build_id_ptr =3D (ctx.dwz_build_id_str.has_value () - ? ctx.dwz_build_id_str->c_str () + const char *dwz_build_id_ptr =3D (ctx.m_dwz_build_id_str.has_value () + ? ctx.m_dwz_build_id_str->c_str () : nullptr); =20 try @@ -171,7 +171,7 @@ index_cache::store (dwarf2_per_bfd *per_bfd, /* Write the index itself to the directory, using the build id as the filename. */ write_dwarf_index (per_bfd, m_dir.c_str (), - ctx.build_id_str.c_str (), dwz_build_id_ptr, + ctx.m_build_id_str.c_str (), dwz_build_id_ptr, dw_index_kind::GDB_INDEX); } catch (const gdb_exception_error &except) diff --git a/gdb/dwarf2/index-cache.h b/gdb/dwarf2/index-cache.h index db2ec82c958..079ed412d2e 100644 --- a/gdb/dwarf2/index-cache.h +++ b/gdb/dwarf2/index-cache.h @@ -49,10 +49,10 @@ private: bool m_enabled; =20 /* Captured value of build id. */ - std::string build_id_str; + std::string m_build_id_str; =20 /* Captured value of dwz build id. */ - std::optional dwz_build_id_str; + std::optional m_dwz_build_id_str; }; =20 /* Class to manage the access to the DWARF index cache. */