Skip to content

Commit 4cad2ce

Browse files
authored
Merge pull request #8912 from jasonmolenda/cp/130091180-fix-for-new-libcxx
[lldb][debugserver] Fix build after libcxx removed generic char_traits implementation
2 parents c20fe8b + 8b7e4b0 commit 4cad2ce

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)