summaryrefslogtreecommitdiff
path: root/binaryninjaapi.cpp
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2024-07-22 16:20:36 -0400
committerGlenn Smith <glenn@vector35.com>2024-07-24 18:03:27 -0400
commit8025322857302744617508639990950630312249 (patch)
tree8c9bf92f28ad02043faf4dd08b5376e3e7fc1e3b /binaryninjaapi.cpp
parent0368556296622756576449861940973500592131 (diff)
API for setting the current OS thread's name
For debugging threads when you have like 50 and want to find one at a glance
Diffstat (limited to 'binaryninjaapi.cpp')
-rw-r--r--binaryninjaapi.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/binaryninjaapi.cpp b/binaryninjaapi.cpp
index 202019ed..70cd9e54 100644
--- a/binaryninjaapi.cpp
+++ b/binaryninjaapi.cpp
@@ -596,3 +596,9 @@ std::optional<size_t> BinaryNinja::FuzzyMatchSingle(const std::string& target, c
}
return result;
}
+
+
+void BinaryNinja::SetThreadName(const std::string& name)
+{
+ BNSetThreadName(name.c_str());
+}