Wind River Support Network

HomeDefectsLIN6-8856
Fixed

LIN6-8856 : CLONE - WRL5: gdbserver doesn't work when stepping in shared libraries

Created: Dec 1, 2014    Updated: Dec 3, 2018
Resolved Date: Dec 23, 2014
Previous ID: LIN5-19785
Found In Version: 6.0.0.13
Fix Version: 6.0.0.16
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Toolchain

Description

gdbserver doesn't work when stepping in shared libraries.
If gdb mode(not gdbserver) with debugging the same program, it works good.

# tar -jxvf Debug1.tar.bz2 /root/
# tar -jxvf Debug2.tar.bz2 /root/
# cp *.so /usr/lib/
# cp IW_MLINE_SIP /usr/lib/
# cp iw_mline_xml /usr/lib/

root@p1020rdb:?# gdb a1ce 
(gdb) b main
(gdb) b ipp_mpcc_main_task
(gdb) r
Breakpoint 1, main (argc=1, argv=0xbffffdc4) at ../main.c:36
36	../main.c: No such file or directory.
(gdb) c
Breakpoint 2, ipp_mpcc_main_task () at ../ippf/mpcc/ipp_mpcc_main_task.c:116
116	../ippf/mpcc/ipp_mpcc_main_task.c: No such file or directory.
(gdb) n
:
(gdb) n
:
119	in ../ippf/mpcc/ipp_mpcc_main_task.c
(gdb) n
120	in ../ippf/mpcc/ipp_mpcc_main_task.c
(gdb) n
121	in ../ippf/mpcc/ipp_mpcc_main_task.c
(gdb) n
122	in ../ippf/mpcc/ipp_mpcc_main_task.c
(gdb) n
123	in ../ippf/mpcc/ipp_mpcc_main_task.c
(gdb) n
124	in ../ippf/mpcc/ipp_mpcc_main_task.c
(gdb) n
125	in ../ippf/mpcc/ipp_mpcc_main_task.c
(gdb) n
126	in ../ippf/mpcc/ipp_mpcc_main_task.c
(gdb) n
127	in ../ippf/mpcc/ipp_mpcc_main_task.c
:
:
gdb works "n" commnad
for more detail, please see 1020rdb-gdb.log.

Steps to Reproduce

[create project]
$ configure --enable-board=fsl-p10xx --enable-kernel=standard --enable-rootfs=glibc_std
$ make -C build gdb.addpkg
$ make -C build gdbserver.addpkg
$ make

[target/p1020rdb]
root@p1020rdb:?# gdbserver localhost:8081 ./a1ce 
Process ./a1ce created; pid = 858
Listening on port 8081

[host Linux]
$ cd /wrs/workspace/wrlinux/5.0.1/tmp1/p1020_prj/export/dist/root
$ tar -jxvf Debug1.tar.bz2 /root/
$ tar -jxvf Debug2.tar.bz2 /root/
$ cp *.so /usr/lib/
$ cp IW_MLINE_SIP /usr/lib/
$ cp iw_mline_xml /usr/lib/
$ ../../../bitbake_ build/tmp/sysroots/x86_64-linux/usr/bin/toolchain/powerpc-wrs-linux-gnu-gdb ./a1ce
(gdb) set sysroot /wrs/workspace/wrlinux/5.0.1/tmp1/p1020_prj/export/dist
(gdb) target remote 10.10.0.80:8081
(gdb) b main
(gdb) b ipp_mpcc_main_task
(gdb) c
Breakpoint 1, main (argc=1, argv=0xbffffdd4) at ../main.c:36
36	../main.c: No such file or directory.
(gdb) bt
#0  main (argc=1, argv=0xbffffdd4) at ../main.c:36
(gdb) c
(gdb) n
===> gdb can not return "n" command.
for more detail, please see 1020rdb-gdbserver.log(target) and gdb-remote_host.log(host Linux).

Other Downloads


Live chat
Online