gdb: Rename structures within ctfread.c
[deliverable/binutils-gdb.git] / gdb / dwarf-index-write.c
index 153c6792f0c2d08cf7f6a24230899a04c505ba0a..0947ba9ec149ade815d9457fd7f21fe83e0752ca 100644 (file)
@@ -714,13 +714,14 @@ public:
           name (of the form "<MumBle>") must be entered without the
           angle brackets.  Note that the current index is unusual,
           see PR symtab/24820 for details.  */
-       const char *decoded = ada_decode (name);
+       std::string decoded = ada_decode (name);
        if (decoded[0] == '<')
          name = (char *) obstack_copy0 (&m_string_obstack,
-                                        decoded + 1,
-                                        strlen (decoded + 1) - 1);
+                                        decoded.c_str () + 1,
+                                        decoded.length () - 2);
        else
-         name = obstack_strdup (&m_string_obstack, ada_encode (decoded));
+         name = obstack_strdup (&m_string_obstack,
+                                ada_encode (decoded.c_str ()));
       }
 
     const auto insertpair
This page took 0.023922 seconds and 4 git commands to generate.