We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
系统提供的dladdr方法是线程安全的,而代码中的fl_dladdr其实底层调用的也是系统提供的_dyld_get_image_header和_dyld_get_image_name等方法,而这些方法是线程不安全的,经过我本人的实验对比,fl_dladdr返回的symbolbuffer和dladdr返回的结果是一样的,不清楚作者是出于什么样的考虑自己重写了一个fl_dladdr方法。
The text was updated successfully, but these errors were encountered:
这段代码是从 PLC 里面抄出来的
Sorry, something went wrong.
PLC是?能给个地址吗?
@Dave1991 PLCrashReporter 某著名的iOS APP崩溃时收集堆栈信息的库
bool bs_dladdr(const uintptr_t address, Dl_info* const info) { dladdr((void *)address, info); return true; }
的确,这个方法直接用dladdr好像也没啥问题
dladdr
No branches or pull requests
系统提供的dladdr方法是线程安全的,而代码中的fl_dladdr其实底层调用的也是系统提供的_dyld_get_image_header和_dyld_get_image_name等方法,而这些方法是线程不安全的,经过我本人的实验对比,fl_dladdr返回的symbolbuffer和dladdr返回的结果是一样的,不清楚作者是出于什么样的考虑自己重写了一个fl_dladdr方法。
The text was updated successfully, but these errors were encountered: