Skip to content

Commit 8b7e4b0

Browse files
DavidSpickettjasonmolenda
authored andcommitted
[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 (cherry picked from commit 7549cde)
1 parent 5f87d6e commit 8b7e4b0

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
}
@@ -4224,7 +4224,7 @@ rnb_err_t RNBRemote::HandlePacket_p(const char *p) {
42244224
ostrm << "00000000";
42254225
} else if (reg_entry->nub_info.reg == (uint32_t)-1) {
42264226
if (reg_entry->nub_info.size > 0) {
4227-
std::basic_string<uint8_t> zeros(reg_entry->nub_info.size, '\0');
4227+
std::vector<uint8_t> zeros(reg_entry->nub_info.size, '\0');
42284228
append_hex_value(ostrm, zeros.data(), zeros.size(), false);
42294229
}
42304230
} else {

0 commit comments

Comments
 (0)