* Re: wrong lib address
[not found] <20070830102107.6A5A398153@nan.false.org>
@ 2007-08-30 12:14 ` Daniel Jacobowitz
2007-09-03 4:16 ` (Rising Spam Alert)Re: " xchen
` (20 more replies)
0 siblings, 21 replies; 43+ messages in thread
From: Daniel Jacobowitz @ 2007-08-30 12:14 UTC (permalink / raw)
To: xchen; +Cc: gdb
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my target
> lib path. Maybe I create the related dir can solve the problem, but I am
> glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these
libraries are found. You need the libraries available in the same
path (plus sysroot) on your host that is used on your target. Try
running ldd on the target instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (19 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
2007-09-03 4:16 ` (Rising Spam Alert)Re: " xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (18 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
2007-09-03 4:16 ` (Rising Spam Alert)Re: " xchen
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (17 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (2 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (16 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (3 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (15 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (4 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (14 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (5 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (13 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (6 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (12 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (7 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (11 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (8 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (10 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (9 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (9 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (10 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (8 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (11 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (7 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (12 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (6 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (13 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (5 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (14 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (4 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (15 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (3 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (16 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
` (2 subsequent siblings)
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (17 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (18 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread* Re: (Rising Spam Alert)Re: wrong lib address
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
` (19 preceding siblings ...)
2007-09-03 4:16 ` xchen
@ 2007-09-03 4:16 ` xchen
20 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-09-03 4:16 UTC (permalink / raw)
To: 'Daniel Jacobowitz'; +Cc: gdb
Hi Daniel,
You said I need the libraries available in the same path for both
host and target. But gdb can load ld.so.1 successfully , in fact my target
doesn't have the path such as
/opt/montavista/pro/devkit/ppc/8xx/target/lib, ld.so.1 was storaged in /lib
for target. It means gdb load the same library use different path.
Why gdb can't load other library use different path.
BTW /mnt/cf/shared/lib was added in the ld.so.conf for target. I
guess $(CROSS_COMPILE)/lib is the default library path for montavista, in
target, $(CROSS_COMPILE) is a empty string, so for gdb both
/opt/montavista/pro/devkit/ppc/8xx/target/lib and /lib are equle to
$(CROSS_COMPILE)/lib. But when I use echo $CROSS_COMPILE in host,
Last login: Mon Sep 3 10:24:10 2007 from 192.168.70.183
Have a lot of fun...
metrodev:~ # echo $CROSS_COMPILE
metrodev:~ #
It displays empty string
Could you give me directions.
Thx,
Xi
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
-----邮件原件-----
发件人: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] 代表
Daniel Jacobowitz
发送时间: 2007年8月30日 20:15
收件人: xchen
抄送: gdb@sourceware.org
主题: (Rising Spam Alert)Re: wrong lib address
On Thu, Aug 30, 2007 at 06:21:12PM +0800, xchen wrote:
> I don't know why the path changed to /mnt/cf/shared/lib, this is my
> target lib path. Maybe I create the related dir can solve the problem,
> but I am glad to know the essential reason and the related solution.
That means /mnt/cf/shared is the path on your target where these libraries
are found. You need the libraries available in the same path (plus sysroot)
on your host that is used on your target. Try running ldd on the target
instead of the cross ldd.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 43+ messages in thread
* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread* wrong lib address
@ 2007-08-30 10:21 xchen
0 siblings, 0 replies; 43+ messages in thread
From: xchen @ 2007-08-30 10:21 UTC (permalink / raw)
To: gdb
Hi
I use gdbserver to debug my program. The problem is gdb can't load
library file correctly.
Belowed is snapshot for my debug process. I think I have set the
right path for loading library file.
metrodev:/home/chenxi # ppc_8xx-ldd metro.elf
libpthread.so.0 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libpthread.so.0 (0xdead1000)
librt.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/librt.so.1 (0xdead2000)
libstdc++.so.5 =>
/opt/montavista/pro/devkit/ppc/8xx/target/usr/lib/libstdc++.so.5
(0xdead3000)
libm.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libm.so.6
(0xdead4000)
libgcc_s.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1 (0xdead5000)
libc.so.6 => /opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(0xdead6000)
/lib/ld.so.1 =>
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1 (0xdead7000)
metrodev:/home/chenxi/cpu_io_v106_af/cpu_v106_af/cpu_v/Debug # ppc-linux-gdb
metro.elf
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-linux-gnu --target=ppc-linux"...
===========================================================
(gdb) set solib-absolute-prefix /opt/montavista/pro/devkit/ppc/8xx/target/
==============================================================
(gdb) target remote 192.168.70.99:1234
Remote debugging using 192.168.70.99:1234
_start () at ../sysdeps/powerpc/powerpc32/dl-start.S:33
33 ../sysdeps/powerpc/powerpc32/dl-start.S: No such file or directory.
in ../sysdeps/powerpc/powerpc32/dl-start.S
Current language: auto; currently asm
(gdb) b main
Breakpoint 1 at 0x1000a5cc: file ../working/src/root.cpp, line 232.
(gdb) list
28 in ../sysdeps/powerpc/powerpc32/dl-start.S
(gdb) continue
Continuing.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libpthread.so.0: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/librt.so.1: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libstdc++.so.5: No such file or directory.
Error while mapping shared library sections:
/mnt/cf/shared/lib/libm.so.6: No such file or directory.
Breakpoint 1, main (argc=2147483016, argv=0xfc32da4) at
../working/src/root.cpp:232
232 pthread_attr_init( &init_attr );
Current language: auto; currently c++
(gdb) info sharedlibrary
From To Syms Read Shared Object Library
0x30001f90 0x30013760 Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/ld.so.1
No /mnt/cf/shared/lib/libpthread.so.0
No /mnt/cf/shared/lib/librt.so.1
No /mnt/cf/shared/lib/libstdc++.so.5
No /mnt/cf/shared/lib/libm.so.6
0x0fd7da40 0x0fd86f3c Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libgcc_s.so.1
0x0fc32ad0 0x0fd3a1fc Yes
/opt/montavista/pro/devkit/ppc/8xx/target/lib/libc.so.6
(gdb)
I don't know why the path changed to /mnt/cf/shared/lib, this is my target
lib path. Maybe I create the related dir can solve the problem, but I am
glad to know the essential reason and the related solution.
Thx,
Xi
^ permalink raw reply [flat|nested] 43+ messages in thread
end of thread, other threads:[~2007-09-03 4:16 UTC | newest]
Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20070830102107.6A5A398153@nan.false.org>
2007-08-30 12:14 ` wrong lib address Daniel Jacobowitz
2007-09-03 4:16 ` (Rising Spam Alert)Re: " xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-09-03 4:16 ` xchen
2007-08-30 10:21 xchen
-- strict thread matches above, loose matches on Subject: below --
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
2007-08-30 10:21 xchen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox