免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2446 | 回复: 2
打印 上一主题 下一主题

gdbserver 调试 , 找不到库 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-12 22:09 |只看该作者 |倒序浏览
[root@host nfs]# arm-linux-gdb test-static
GNU gdb (Sourcery G++ Lite 2008q3-72) 6.8.50.20080821-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>;...
(gdb) target remote 192.168.69.3:123
Remote debugging using 192.168.69.3:123
0x00008130 in _start ()
(gdb) c
Continuing.

Program exited normally.



[root@host nfs]# arm-linux-gdb test-share
GNU gdb (Sourcery G++ Lite 2008q3-72) 6.8.50.20080821-cvs
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>;
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi".
For bug reporting instructions, please see:
<https://support.codesourcery.com/GNUToolchain/>;...
(gdb) source .arm-linux-gdbini
(gdb) show solib-absolute-prefix
The current system root is "/opt/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/lib".

(gdb) target remote 192.168.69.3:123
Remote debugging using 192.168.69.3:123
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x400007b0 in ?? ()

(gdb) c
Continuing.
Error while mapping shared library sections:
/lib/libc.so.6: No such file or directory.
Error while mapping shared library sections:
/lib/ld-linux.so.3: No such file or directory.


Program exited normally.

///////////////
静态的可以,动态的我指明了路径也不行,难道不是在这儿设置??
或者板子上的系统的库有问题??

论坛徽章:
5
摩羯座
日期:2014-07-22 09:03:552015元宵节徽章
日期:2015-03-06 15:50:392015亚冠之大阪钢巴
日期:2015-06-12 16:01:352015年中国系统架构师大会
日期:2015-06-29 16:11:2815-16赛季CBA联赛之四川
日期:2018-12-17 14:10:21
2 [报告]
发表于 2010-01-12 22:41 |只看该作者
应该不是
不过说实在的,动态链接库的,还帧不好跟
况且,现在调试一般用coredump就可以搞定,好像gdbserver并不是很好用

论坛徽章:
0
3 [报告]
发表于 2010-01-13 09:45 |只看该作者
.so的跟踪首先要用load_lib函数,加载一下库才能跟的。

你搜一下gdb跟踪动态链接库
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP