diff --git a/lldb/tools/debugserver/source/RNBRemote.cpp b/lldb/tools/debugserver/source/RNBRemote.cpp --- a/lldb/tools/debugserver/source/RNBRemote.cpp +++ b/lldb/tools/debugserver/source/RNBRemote.cpp @@ -2585,7 +2585,7 @@ // fail value. If it does, return this instead in case some of // the registers are not available on the current system. if (reg->nub_info.size > 0) { - std::basic_string zeros(reg->nub_info.size, '\0'); + std::vector zeros(reg->nub_info.size, '\0'); append_hex_value(ostrm, zeros.data(), zeros.size(), false); } } @@ -4219,7 +4219,7 @@ ostrm << "00000000"; } else if (reg_entry->nub_info.reg == (uint32_t)-1) { if (reg_entry->nub_info.size > 0) { - std::basic_string zeros(reg_entry->nub_info.size, '\0'); + std::vector zeros(reg_entry->nub_info.size, '\0'); append_hex_value(ostrm, zeros.data(), zeros.size(), false); } } else {