adb 设置从不同目录加载库
我在 HP IA64 机器上生成了一个核心文件。我有与核心文件相关的可执行文件和共享对象。我正在尝试使用 adb 调试器获取调用堆栈,但核心文件是在我无权访问的计算机上生成的,因此共享对象位于与生成核心文件时不同的位置。
我知道如果我使用 gdb 遇到类似的情况,我会执行以下操作:
machine:user> gdb
(gdb) set solib-search-path path1:path2:path3
(gdb) file <name of executable file>
(gdb) core <name of core file>
solib-search-path 的设置告诉 gdb 从哪里加载共享库。
如果我使用 adb,有等效的吗?
I have a core file generated on an HP IA64 machine. I have the executable and shared objects related to the core file. I am trying to get the call stack using the adb debugger but the core file was generated on a machine I don't have access to, so the shared objects are in a different location than they are at the time the core file was generated.
I know if I have a similar situation using gdb I would do the following:
machine:user> gdb
(gdb) set solib-search-path path1:path2:path3
(gdb) file <name of executable file>
(gdb) core <name of core file>
Where the setting of solib-search-path tells gdb where to load shared libraries from.
Is there an equivalent if I'm using adb?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案似乎是在这种情况下不使用adb而是使用gdb。
The answer seems to be not to use adb in this situation but use gdb.