gdb调试时指定source路径的问题

82 views
Skip to first unread message

Zhiqiang Niu

unread,
Mar 17, 2014, 4:21:21 AM3/17/14
to sh...@googlegroups.com
我最近在用gdbserver远程调试,在本地指定source路径的时候有一个问题,就是指定了代码的根目录,gdb会找不到下层的文件,必须要同时指定各个子目录,才能找到源代码,有没有什么参数可以设置递归地去搜寻根目录下的各级子目录呢?

孑影

unread,
May 5, 2014, 11:34:34 AM5/5/14
to sh...@googlegroups.com
喵,,我也遇到这个问题了,好苦恼了,现在用file命令,一个一个加载

#风起看云涌,叶落品人生#


在 2014年3月17日 下午4:21,Zhiqiang Niu <nzqp...@gmail.com>写道:
我最近在用gdbserver远程调试,在本地指定source路径的时候有一个问题,就是指定了代码的根目录,gdb会找不到下层的文件,必须要同时指定各个子目录,才能找到源代码,有没有什么参数可以设置递归地去搜寻根目录下的各级子目录呢?

--
-- You received this message because you are subscribed to the Google Groups Shanghai Linux User Group group. To post to this group, send email to sh...@googlegroups.com. To unsubscribe from this group, send email to shlug+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/shlug?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛中的“Shanghai Linux User Group”论坛。
要取消订阅此论坛,并停止接收其发来的电子邮件,请发送电子邮件至shlug+un...@googlegroups.com
如需了解更多选项,请访问https://groups.google.com/d/optout

AR

unread,
May 5, 2014, 8:23:40 PM5/5/14
to sh...@googlegroups.com
2014-05-05 23:34 GMT+08:00 孑影 <yhsp...@gmail.com>:
> 喵,,我也遇到这个问题了,好苦恼了,现在用file命令,一个一个加载

http://stackoverflow.com/questions/1103161/gdb-searching-for-source-directories

https://sourceware.org/gdb/onlinedocs/gdb/Source-Path.html

--
Silence is golden.
Reply all
Reply to author
Forward
0 new messages