summaryrefslogtreecommitdiff
path: root/ui
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 /ui
parent1b2f5c4c8df34d399a8abaff7db5d2338cb90ac1 (diff)
Add LogForException APIs to pass stack trace information separate from the message
Diffstat (limited to 'ui')
-rw-r--r--ui/logview.h2
-rw-r--r--ui/progresstask.h6
2 files changed, 6 insertions, 2 deletions
diff --git a/ui/logview.h b/ui/logview.h
index 36f0f080..b1ce57a1 100644
--- a/ui/logview.h
+++ b/ui/logview.h
@@ -130,6 +130,8 @@ class BINARYNINJAUIAPI LogListModel : public QAbstractItemModel, BinaryNinja::Lo
void clear();
virtual void LogMessage(size_t sessionId, BNLogLevel level, const std::string& msg, const std::string& loggerName = "", size_t tid = 0) override;
+ virtual void LogMessageWithStackTrace(size_t sessionId, BNLogLevel level, const std::string& stackTrace,
+ const std::string& msg, const std::string& loggerName = "", size_t tid = 0) override;
virtual BNLogLevel GetLogLevel() override;
QString getFormattedMessage(const LogListItem& item) const;
diff --git a/ui/progresstask.h b/ui/progresstask.h
index 6765ec2d..58bfb7d3 100644
--- a/ui/progresstask.h
+++ b/ui/progresstask.h
@@ -352,7 +352,8 @@ class BINARYNINJAUIAPI BackgroundThread : public QObject
// Just print an error and keep going
catch (std::exception& e)
{
- BinaryNinja::LogError("Exception thrown in BackgroundThread::finally(): %s", e.what());
+ BinaryNinja::LogErrorForException(
+ e, "Exception thrown in BackgroundThread::finally(): %s", e.what());
}
catch (...)
{
@@ -413,7 +414,8 @@ class BINARYNINJAUIAPI BackgroundThread : public QObject
// Just print an error and keep going
catch (std::exception& e)
{
- BinaryNinja::LogError("Exception thrown in BackgroundThread::finally(): %s", e.what());
+ BinaryNinja::LogErrorForException(
+ e, "Exception thrown in BackgroundThread::finally(): %s", e.what());
}
catch (...)
{