Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道-file-list-exec-sections,但它似乎在 GDB 10.2 中没有实现(目前是当前版本)。我想要一个 GDB/MI 命令,而不是info proc mappings因为我想要一种更简单的方法来解析结果,还因为我想知道是否有任何替代-file-list-exec-sections命令,因为它似乎消失了。
-file-list-exec-sections
info proc mappings
使用解释器指令
-interpreter-exec console "info proc mappings "
您将获得可解析的输出(比 mi 解释器有点丑,但可以完成工作)