This revision was automatically updated to reflect the committed changes.
Closed by commit rGa3ec54c66075: [lldb] Fix unused variable warning in TraceHTR
(NFC) (authored by kevcadieux, committed by Walter Erquinigo
<[email protected]>).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128874/new/
https://reviews.llvm.org/D128874
Files:
lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
Index: lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
===================================================================
--- lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
+++ 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<ConstString> {
@@ -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.
Index: lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
===================================================================
--- lldb/source/Plugins/TraceExporter/common/TraceHTR.cpp
+++ 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<ConstString> {
@@ -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.
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits