Skip to content

Commit 7549cde

Browse files
committed
[lldb][debugserver] Fix build after libcxx removed generic char_traits implementation
Which was done in https://reviews.llvm.org/D157058. This follows the fix for lldb-server in https://reviews.llvm.org/D157589. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D158391
1 parent 45325a2 commit 7549cde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/tools/debugserver/source/RNBRemote.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2585,7 +2585,7 @@ void register_value_in_hex_fixed_width(std::ostream &ostrm, nub_process_t pid,
25852585
// fail value. If it does, return this instead in case some of
25862586
// the registers are not available on the current system.
25872587
if (reg->nub_info.size > 0) {
2588-
std::basic_string<uint8_t> zeros(reg->nub_info.size, '\0');
2588+
std::vector<uint8_t> zeros(reg->nub_info.size, '\0');
25892589
append_hex_value(ostrm, zeros.data(), zeros.size(), false);
25902590
}
25912591
}
@@ -4219,7 +4219,7 @@ rnb_err_t RNBRemote::HandlePacket_p(const char *p) {
42194219
ostrm << "00000000";
42204220
} else if (reg_entry->nub_info.reg == (uint32_t)-1) {
42214221
if (reg_entry->nub_info.size > 0) {
4222-
std::basic_string<uint8_t> zeros(reg_entry->nub_info.size, '\0');
4222+
std::vector<uint8_t> zeros(reg_entry->nub_info.size, '\0');
42234223
append_hex_value(ostrm, zeros.data(), zeros.size(), false);
42244224
}
42254225
} else {

0 commit comments

Comments
 (0)