ios - 与 `-s` 选项相比,LLDB 中`image lookup` 的`-n` 选项如何操作?
问题描述
我知道该-s
选项在符号表 ( image dump symtab
) 中搜索符号匹配<symbol>
。
但是,我不明白该-n
选项是如何运作的。它从 中返回不同的结果-s
,如果它没有在符号表中搜索函数/符号,它在哪里寻找<function-or-symbol>
?
help image lookup
:
-s <symbol> ( --symbol <symbol> )
Lookup a symbol by name in the symbol tables in one or more target modules.
-n <function-or-symbol> ( --name <function-or-symbol> )
Lookup a function or symbol by name in one or more target modules.
解决方案
This one finds debug symbols:
(lldb) image lookup -r -n <FUNC_REGEX>
This one finds non-debug symbols:
(lldb) image lookup -r -s <FUNC_REGEX>
Provide a list of binaries as arguments to limit the search.
因此,image lookup -n
只搜索调试符号,而image lookup -s
搜索非调试符号。
推荐阅读
- variables - javascript中的动态运算符
- office-js - 将教学气泡或 CoachMark 添加到 Excel 网络插件功能区
- reactjs - 如何测试 Ag-Grid 中的组行
- r - How to skip double space in a space delimited .txt in R?
- ios - iOS 中的 Arch 错误:iOS 模拟器,但在为 iOS 构建的 dylib 中链接
- python - 如何正确地将字典放入 CSV 文件中,以便通过键值搜索 CSV 文件?
- flutter - Flutter device daemon #1 exited (exit code 255), stderr: Checking Dart SDK version... 出乎意料
- cassandra - 无法在 Windows 上启动 Cassandra,出现 UnsatisfiedLinkError “找不到依赖库”
- haskell - 即使使用 bang 模式也无法调用 IO () 函数
- r - 这是计数功能的正确用法还是我遗漏了什么?