Skip to content

Commit

Permalink
[lldb][debugserver] Fix build after libcxx removed generic char_trait…
Browse files Browse the repository at this point in the history
…s 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
  • Loading branch information
DavidSpickett committed Aug 21, 2023
1 parent 45325a2 commit 7549cde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lldb/tools/debugserver/source/RNBRemote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2585,7 +2585,7 @@ void register_value_in_hex_fixed_width(std::ostream &ostrm, nub_process_t pid,
// 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<uint8_t> zeros(reg->nub_info.size, '\0');
std::vector<uint8_t> zeros(reg->nub_info.size, '\0');
append_hex_value(ostrm, zeros.data(), zeros.size(), false);
}
}
Expand Down Expand Up @@ -4219,7 +4219,7 @@ rnb_err_t RNBRemote::HandlePacket_p(const char *p) {
ostrm << "00000000";
} else if (reg_entry->nub_info.reg == (uint32_t)-1) {
if (reg_entry->nub_info.size > 0) {
std::basic_string<uint8_t> zeros(reg_entry->nub_info.size, '\0');
std::vector<uint8_t> zeros(reg_entry->nub_info.size, '\0');
append_hex_value(ostrm, zeros.data(), zeros.size(), false);
}
} else {
Expand Down

0 comments on commit 7549cde

Please sign in to comment.