From 4ad89ab48b4d50ec5cb01e8f48ec3573083d17b0 Mon Sep 17 00:00:00 2001 From: taalhaataahir0102 <23100293@lums.edu.pk> Date: Thu, 30 Nov 2023 11:47:24 +0500 Subject: [PATCH] Print function updated --- lldb/source/Utility/Stream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lldb/source/Utility/Stream.cpp b/lldb/source/Utility/Stream.cpp index 363b01cf96a0cd..2ff13c7cca1341 100644 --- a/lldb/source/Utility/Stream.cpp +++ b/lldb/source/Utility/Stream.cpp @@ -85,6 +85,7 @@ void Stream::PutCStringColorHighlighted(llvm::StringRef text, llvm::StringRef remaining = text; std::string format_str = lldb_private::ansi::FormatAnsiTerminalCodes( "${ansi.fg.red}%.*s${ansi.normal}"); + while (reg_pattern.match(remaining, &matches)) { llvm::StringRef match = matches[0]; size_t match_start_pos = match.data() - remaining.data();