]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Rename members of index_cache_store_context
authorTom Tromey <tom@tromey.com>
Sat, 27 Jan 2024 15:51:10 +0000 (08:51 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 9 Mar 2024 00:25:49 +0000 (17:25 -0700)
This renames the private members of index_cache_store_context to start
with "m_".

gdb/dwarf2/index-cache.c
gdb/dwarf2/index-cache.h

index 7ddd7b3f97489e65f5a3b65f673c32c4aa2aff45..645e36c66f773499d66830a48dff33ae40e31a96 100644 (file)
@@ -104,7 +104,7 @@ index_cache_store_context::index_cache_store_context (const index_cache &ic,
       m_enabled = false;
       return;
     }
-  build_id_str = build_id_to_string (build_id);
+  m_build_id_str = build_id_to_string (build_id);
 
   /* Get build id of dwz file, if present.  */
   const dwz_file *dwz = dwarf2_get_dwz_file (per_bfd);
@@ -121,7 +121,7 @@ index_cache_store_context::index_cache_store_context (const index_cache &ic,
          return;
        }
 
-      dwz_build_id_str = build_id_to_string (dwz_build_id);
+      m_dwz_build_id_str = build_id_to_string (dwz_build_id);
     }
 
   if (ic.m_dir.empty ())
@@ -159,8 +159,8 @@ index_cache::store (dwarf2_per_bfd *per_bfd,
   if (!ctx.m_enabled)
     return;
 
-  const char *dwz_build_id_ptr = (ctx.dwz_build_id_str.has_value ()
-                                 ? ctx.dwz_build_id_str->c_str ()
+  const char *dwz_build_id_ptr = (ctx.m_dwz_build_id_str.has_value ()
+                                 ? ctx.m_dwz_build_id_str->c_str ()
                                  : nullptr);
 
   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)
index db2ec82c9580714672cd9fb44a71d18cd669ad98..079ed412d2eb87421db172d036084824c0ef1614 100644 (file)
@@ -49,10 +49,10 @@ private:
   bool m_enabled;
 
   /* Captured value of build id.  */
-  std::string build_id_str;
+  std::string m_build_id_str;
 
   /* Captured value of dwz build id.  */
-  std::optional<std::string> dwz_build_id_str;
+  std::optional<std::string> m_dwz_build_id_str;
 };
 
 /* Class to manage the access to the DWARF index cache.  */