summaryrefslogtreecommitdiff
path: root/plugins/rtti
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2025-07-28 20:56:05 -0400
committerRusty Wagner <rusty.wagner@gmail.com>2025-08-01 14:35:04 -0400
commit8df034ed6b3a1a52bd268ed43e783c35b687408f (patch)
treecaa89977dfffe302514489b96b6cda1765f0af2b /plugins/rtti
parent1b2f5c4c8df34d399a8abaff7db5d2338cb90ac1 (diff)
Add LogForException APIs to pass stack trace information separate from the message
Diffstat (limited to 'plugins/rtti')
-rw-r--r--plugins/rtti/itanium.cpp2
-rw-r--r--plugins/rtti/plugin.cpp8
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/rtti/itanium.cpp b/plugins/rtti/itanium.cpp
index ad6d6e6d..dae85b46 100644
--- a/plugins/rtti/itanium.cpp
+++ b/plugins/rtti/itanium.cpp
@@ -748,7 +748,7 @@ void ItaniumRTTIProcessor::ProcessRTTI()
}
catch (std::exception& e)
{
- m_logger->LogWarn("Failed to process object at %llx... skipping", currAddr);
+ m_logger->LogWarnForException(e, "Failed to process object at %llx... skipping", currAddr);
}
}
};
diff --git a/plugins/rtti/plugin.cpp b/plugins/rtti/plugin.cpp
index d94be592..6f1a3e2f 100644
--- a/plugins/rtti/plugin.cpp
+++ b/plugins/rtti/plugin.cpp
@@ -29,7 +29,7 @@ void RTTIAnalysis(const Ref<AnalysisContext>& analysisContext)
}
catch (std::exception& e)
{
- LogError("MSVC RTTI Analysis failed with uncaught exception: %s", e.what());
+ LogErrorForException(e, "MSVC RTTI Analysis failed with uncaught exception: %s", e.what());
}
}
@@ -41,7 +41,7 @@ void RTTIAnalysis(const Ref<AnalysisContext>& analysisContext)
}
catch (std::exception& e)
{
- LogError("Itanium RTTI Analysis failed with uncaught exception: %s", e.what());
+ LogErrorForException(e, "Itanium RTTI Analysis failed with uncaught exception: %s", e.what());
}
}
@@ -60,7 +60,7 @@ void VFTAnalysis(const Ref<AnalysisContext>& analysisContext)
}
catch (std::exception& e)
{
- LogError("MSVC VFT Analysis failed with uncaught exception: %s", e.what());
+ LogErrorForException(e, "MSVC VFT Analysis failed with uncaught exception: %s", e.what());
}
try
@@ -71,7 +71,7 @@ void VFTAnalysis(const Ref<AnalysisContext>& analysisContext)
}
catch (std::exception& e)
{
- LogError("Itanium VFT Analysis failed with uncaught exception: %s", e.what());
+ LogErrorForException(e, "Itanium VFT Analysis failed with uncaught exception: %s", e.what());
}
}