diff --git a/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp b/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp --- a/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp +++ b/lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp @@ -132,6 +132,9 @@ cursor.SetForwards(true); cursor.Seek(0, TraceCursor::SeekType::Beginning); + // TODO: fix after persona0220's patch on a new way to access instruction + // kinds + /* Target &target = thread.GetProcess()->GetTarget(); auto function_name_from_load_address = [&](lldb::addr_t load_address) -> llvm::Optional { @@ -146,8 +149,7 @@ return llvm::None; }; - /* TODO: fix after persona0220's patch on a new way to access instruction - kinds while (cursor.HasValue()) { if (cursor.IsError()) { + while (cursor.HasValue()) { if (cursor.IsError()) { // Append a load address of 0 for all instructions that an error occured // while decoding. // TODO: Make distinction between errors by storing the error messages.