* gdbserver with PowerPC 8260
@ 2002-10-01 16:11 Wenxiang Dai
2002-10-01 16:21 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Wenxiang Dai @ 2002-10-01 16:11 UTC (permalink / raw)
To: gdb
I downloaded the latest GDB code "gdb+dejagnu-weekly-20021001.tar.bz2" from
sources.rehat.com, and rebuild the gdbserver and gdb for powerpc target,
then I used the gdbserver to debug a multi-threads programme in target, if
the breakpoint was set in main routine, it's OK, but if the break point was
set within any other child thread, the break point can be hit, however, the
debug cusor is not shown and the gdb say it is going to libc.so, if I say n,
the target programme will crash.
I try to set "solib-search-path" to the target share lib path, the problem
remains same.
I used nfs to map the root file system to target.
Any thought? Any suggestion?
Thanks
here is the display of the gdb
GNU DDD 3.3.1 (i386-redhat-linux-gnu), by Dorothea Lütkehaus and Andreas
Zeller.
Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
Copyright © 1999-2001 Universität Passau, Germany.
(gdb) set solib-search-path /exports/rfs/lib
(gdb) file /home/wxdai/work/ipdslam/icm/apps/build/nmgt/bin.mpc/nmgt
(gdb) list clib_pass.c:1
Line 1 of "../../../../icm/apps/nmgt/cli_b/clib_pass.c" is at address
0x1003ff94 <enable_prv_func> but contains no code.
/home/wxdai/work/ipdslam/icm/apps/nmgt/cli_b/clib_pass.c:1:0:beg:0x1003ff94
(gdb) break ../../../../icm/apps/nmgt/cli_b/clib_pass.c:20
Breakpoint 1 at 0x1003ffb4: file
../../../../icm/apps/nmgt/cli_b/clib_pass.c,
line 20.
(gdb) target remote 172.16.133.231:12345
0x30010660 in ?? ()
(gdb) handle SIG32 nostop
(gdb) c
Program received signal SIG32, Real-time event 32.
Program received signal SIG32, Real-time event 32.
Program received signal SIG32, Real-time event 32.
Program received signal SIG32, Real-time event 32.
Program received signal SIGTRAP, Trace/breakpoint trap.
0x0ff12e00 in ngettext () from /lib/libc.so.6
(gdb) c
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gdbserver with PowerPC 8260
2002-10-01 16:11 gdbserver with PowerPC 8260 Wenxiang Dai
@ 2002-10-01 16:21 ` Daniel Jacobowitz
2002-10-01 16:28 ` Wenxiang Dai
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-10-01 16:21 UTC (permalink / raw)
To: Wenxiang Dai; +Cc: gdb
> Program received signal SIG32, Real-time event 32.
If you get that message, multithreaded debug is not working. Is
libthread_db available on your target?
On Tue, Oct 01, 2002 at 07:13:16PM -0400, Wenxiang Dai wrote:
> I downloaded the latest GDB code "gdb+dejagnu-weekly-20021001.tar.bz2" from
> sources.rehat.com, and rebuild the gdbserver and gdb for powerpc target,
> then I used the gdbserver to debug a multi-threads programme in target, if
> the breakpoint was set in main routine, it's OK, but if the break point was
> set within any other child thread, the break point can be hit, however, the
> debug cusor is not shown and the gdb say it is going to libc.so, if I say n,
> the target programme will crash.
>
> I try to set "solib-search-path" to the target share lib path, the problem
> remains same.
>
> I used nfs to map the root file system to target.
>
> Any thought? Any suggestion?
>
> Thanks
>
> here is the display of the gdb
>
> GNU DDD 3.3.1 (i386-redhat-linux-gnu), by Dorothea Lütkehaus and Andreas
> Zeller.
> Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
> Copyright © 1999-2001 Universität Passau, Germany.
> (gdb) set solib-search-path /exports/rfs/lib
> (gdb) file /home/wxdai/work/ipdslam/icm/apps/build/nmgt/bin.mpc/nmgt
> (gdb) list clib_pass.c:1
> Line 1 of "../../../../icm/apps/nmgt/cli_b/clib_pass.c" is at address
> 0x1003ff94 <enable_prv_func> but contains no code.
>
> /home/wxdai/work/ipdslam/icm/apps/nmgt/cli_b/clib_pass.c:1:0:beg:0x1003ff94
> (gdb) break ../../../../icm/apps/nmgt/cli_b/clib_pass.c:20
> Breakpoint 1 at 0x1003ffb4: file
> ../../../../icm/apps/nmgt/cli_b/clib_pass.c,
> line 20.
> (gdb) target remote 172.16.133.231:12345
> 0x30010660 in ?? ()
> (gdb) handle SIG32 nostop
> (gdb) c
>
> Program received signal SIG32, Real-time event 32.
>
> Program received signal SIG32, Real-time event 32.
>
> Program received signal SIG32, Real-time event 32.
>
> Program received signal SIG32, Real-time event 32.
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x0ff12e00 in ngettext () from /lib/libc.so.6
> (gdb) c
>
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: gdbserver with PowerPC 8260
2002-10-01 16:21 ` Daniel Jacobowitz
@ 2002-10-01 16:28 ` Wenxiang Dai
2002-10-01 16:56 ` Daniel Jacobowitz
2002-10-01 17:41 ` help: gdb with no ROM/Flash Kam Lee
0 siblings, 2 replies; 5+ messages in thread
From: Wenxiang Dai @ 2002-10-01 16:28 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
Yes, it's in my nfs lib directory, first time I try to run the gdbserver, it
says need the libthread_db, so I copy it into the nfs lib directory, then
the gdbserver can run, do u mean this library is not OK. I am using the
timesys package for the target. Thanks
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@mvista.com]
Sent: Tuesday, October 01, 2002 7:21 PM
To: Wenxiang Dai
Cc: gdb@sources.redhat.com
Subject: Re: gdbserver with PowerPC 8260
> Program received signal SIG32, Real-time event 32.
If you get that message, multithreaded debug is not working. Is
libthread_db available on your target?
On Tue, Oct 01, 2002 at 07:13:16PM -0400, Wenxiang Dai wrote:
> I downloaded the latest GDB code "gdb+dejagnu-weekly-20021001.tar.bz2"
from
> sources.rehat.com, and rebuild the gdbserver and gdb for powerpc target,
> then I used the gdbserver to debug a multi-threads programme in target, if
> the breakpoint was set in main routine, it's OK, but if the break point
was
> set within any other child thread, the break point can be hit, however,
the
> debug cusor is not shown and the gdb say it is going to libc.so, if I say
n,
> the target programme will crash.
>
> I try to set "solib-search-path" to the target share lib path, the problem
> remains same.
>
> I used nfs to map the root file system to target.
>
> Any thought? Any suggestion?
>
> Thanks
>
> here is the display of the gdb
>
> GNU DDD 3.3.1 (i386-redhat-linux-gnu), by Dorothea Lütkehaus and Andreas
> Zeller.
> Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
> Copyright © 1999-2001 Universität Passau, Germany.
> (gdb) set solib-search-path /exports/rfs/lib
> (gdb) file /home/wxdai/work/ipdslam/icm/apps/build/nmgt/bin.mpc/nmgt
> (gdb) list clib_pass.c:1
> Line 1 of "../../../../icm/apps/nmgt/cli_b/clib_pass.c" is at address
> 0x1003ff94 <enable_prv_func> but contains no code.
>
>
/home/wxdai/work/ipdslam/icm/apps/nmgt/cli_b/clib_pass.c:1:0:beg:0x1003ff94
> (gdb) break ../../../../icm/apps/nmgt/cli_b/clib_pass.c:20
> Breakpoint 1 at 0x1003ffb4: file
> ../../../../icm/apps/nmgt/cli_b/clib_pass.c,
> line 20.
> (gdb) target remote 172.16.133.231:12345
> 0x30010660 in ?? ()
> (gdb) handle SIG32 nostop
> (gdb) c
>
> Program received signal SIG32, Real-time event 32.
>
> Program received signal SIG32, Real-time event 32.
>
> Program received signal SIG32, Real-time event 32.
>
> Program received signal SIG32, Real-time event 32.
>
> Program received signal SIGTRAP, Trace/breakpoint trap.
> 0x0ff12e00 in ngettext () from /lib/libc.so.6
> (gdb) c
>
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gdbserver with PowerPC 8260
2002-10-01 16:28 ` Wenxiang Dai
@ 2002-10-01 16:56 ` Daniel Jacobowitz
2002-10-01 17:41 ` help: gdb with no ROM/Flash Kam Lee
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2002-10-01 16:56 UTC (permalink / raw)
To: Wenxiang Dai; +Cc: gdb
I don't know anything about the timesys software. It's only been
tested with glibc and I suspect timesys is using uclibc. Sorry, you'll
have to solve this on your own.
On Tue, Oct 01, 2002 at 07:30:11PM -0400, Wenxiang Dai wrote:
> Yes, it's in my nfs lib directory, first time I try to run the gdbserver, it
> says need the libthread_db, so I copy it into the nfs lib directory, then
> the gdbserver can run, do u mean this library is not OK. I am using the
> timesys package for the target. Thanks
>
> -----Original Message-----
> From: Daniel Jacobowitz [mailto:drow@mvista.com]
> Sent: Tuesday, October 01, 2002 7:21 PM
> To: Wenxiang Dai
> Cc: gdb@sources.redhat.com
> Subject: Re: gdbserver with PowerPC 8260
>
>
> > Program received signal SIG32, Real-time event 32.
>
> If you get that message, multithreaded debug is not working. Is
> libthread_db available on your target?
>
> On Tue, Oct 01, 2002 at 07:13:16PM -0400, Wenxiang Dai wrote:
> > I downloaded the latest GDB code "gdb+dejagnu-weekly-20021001.tar.bz2"
> from
> > sources.rehat.com, and rebuild the gdbserver and gdb for powerpc target,
> > then I used the gdbserver to debug a multi-threads programme in target, if
> > the breakpoint was set in main routine, it's OK, but if the break point
> was
> > set within any other child thread, the break point can be hit, however,
> the
> > debug cusor is not shown and the gdb say it is going to libc.so, if I say
> n,
> > the target programme will crash.
> >
> > I try to set "solib-search-path" to the target share lib path, the problem
> > remains same.
> >
> > I used nfs to map the root file system to target.
> >
> > Any thought? Any suggestion?
> >
> > Thanks
> >
> > here is the display of the gdb
> >
> > GNU DDD 3.3.1 (i386-redhat-linux-gnu), by Dorothea Lütkehaus and Andreas
> > Zeller.
> > Copyright © 1995-1999 Technische Universität Braunschweig, Germany.
> > Copyright © 1999-2001 Universität Passau, Germany.
> > (gdb) set solib-search-path /exports/rfs/lib
> > (gdb) file /home/wxdai/work/ipdslam/icm/apps/build/nmgt/bin.mpc/nmgt
> > (gdb) list clib_pass.c:1
> > Line 1 of "../../../../icm/apps/nmgt/cli_b/clib_pass.c" is at address
> > 0x1003ff94 <enable_prv_func> but contains no code.
> >
> >
> /home/wxdai/work/ipdslam/icm/apps/nmgt/cli_b/clib_pass.c:1:0:beg:0x1003ff94
> > (gdb) break ../../../../icm/apps/nmgt/cli_b/clib_pass.c:20
> > Breakpoint 1 at 0x1003ffb4: file
> > ../../../../icm/apps/nmgt/cli_b/clib_pass.c,
> > line 20.
> > (gdb) target remote 172.16.133.231:12345
> > 0x30010660 in ?? ()
> > (gdb) handle SIG32 nostop
> > (gdb) c
> >
> > Program received signal SIG32, Real-time event 32.
> >
> > Program received signal SIG32, Real-time event 32.
> >
> > Program received signal SIG32, Real-time event 32.
> >
> > Program received signal SIG32, Real-time event 32.
> >
> > Program received signal SIGTRAP, Trace/breakpoint trap.
> > 0x0ff12e00 in ngettext () from /lib/libc.so.6
> > (gdb) c
> >
> >
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 5+ messages in thread
* help: gdb with no ROM/Flash
2002-10-01 16:28 ` Wenxiang Dai
2002-10-01 16:56 ` Daniel Jacobowitz
@ 2002-10-01 17:41 ` Kam Lee
1 sibling, 0 replies; 5+ messages in thread
From: Kam Lee @ 2002-10-01 17:41 UTC (permalink / raw)
To: gdb
Hi all,
I would like to get help to gdb a target without loading a file, it is a
boot program stored in Flash memory.
After GDB start, I use "set $pc=x" to the particular address, let say this
particular address is 0.
By dumping the address x/x 0, I can see valid instructions.
By doing "disas", I got "No function contains program for selected frame."
By doing "stepi", I got "Cannot access memory at .
Any help is appreciated.
Regards
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-10-02 0:41 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-01 16:11 gdbserver with PowerPC 8260 Wenxiang Dai
2002-10-01 16:21 ` Daniel Jacobowitz
2002-10-01 16:28 ` Wenxiang Dai
2002-10-01 16:56 ` Daniel Jacobowitz
2002-10-01 17:41 ` help: gdb with no ROM/Flash Kam Lee
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox