]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/arch-utils.c
Use std::string for disassembler options
[thirdparty/binutils-gdb.git] / gdb / arch-utils.c
index ae3354f65799a8038dec4cc4dc0323259a505499..d404d1fc38a3019b9622883a4dd0731e2827afae 100644 (file)
@@ -1156,11 +1156,11 @@ pstring (const char *string)
 }
 
 static const char *
-pstring_ptr (char **string)
+pstring_ptr (std::string *string)
 {
-  if (string == NULL || *string == NULL)
+  if (string == nullptr)
     return "(null)";
-  return *string;
+  return string->c_str ();
 }
 
 /* Helper function to print a list of strings, represented as "const