mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-11-11 08:39:35 +01:00
android stuff
This commit is contained in:
1 parent
11e214f332
commit
798c194025
11 files changed
+304
-236
No files matched your search
@@ -126,15 +126,17 @@ namespace utils
|
||||
std::vector<void*> get_backtrace(int max_depth)
|
||||
{
|
||||
std::vector<void*> result(max_depth);
|
||||
#ifndef ANDROID
|
||||
int depth = backtrace(result.data(), max_depth);
|
||||
|
||||
result.resize(depth);
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
std::vector<std::string> get_backtrace_symbols(const std::vector<void*>& stack)
|
||||
{
|
||||
std::vector<std::string> result;
|
||||
#ifndef ANDROID
|
||||
result.reserve(stack.size());
|
||||
|
||||
const auto symbols = backtrace_symbols(stack.data(), static_cast<int>(stack.size()));
|
||||
@@ -144,6 +146,7 @@ namespace utils
|
||||
}
|
||||
|
||||
free(symbols);
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user