[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [dsdp-dd-dev] cross gdb + gdbserver libpthread
|
Hi,
GDB 6.3 is older than what we officially support.
We have tested with 6.6 and after.
I think the simplest thing, if you can, is to download GDB 6.8
Marc
> -----Original Message-----
> From: dsdp-dd-dev-bounces@xxxxxxxxxxx
> [mailto:dsdp-dd-dev-bounces@xxxxxxxxxxx]On Behalf Of Matteo Fortini
> Sent: Wednesday, July 30, 2008 1:50 PM
> To: Device Debugging developer discussions
> Subject: Re: [dsdp-dd-dev] cross gdb + gdbserver libpthread
>
>
> Thank you for your reply, you can find my answers below:
>
> Matteo
>
>
> Here's the output I got from adding -debug:
> Start VM: -Dosgi.requiredJavaVersion=1.5
> -Xms40m
> -Xmx256m
> -XX:MaxPermSize=256m
> -Djava.class.path=/opt/eclipse/plugins/org.eclipse.equinox.lau
> ncher_1.0.100.v20080509-1800.jar
> -os linux
> -ws gtk
> -arch x86
> -showsplash
> /opt/eclipse//plugins/org.eclipse.platform_3.3.100.v2008061720
> 00/splash.bmp
> -launcher /opt/eclipse/eclipse
> -name Eclipse
> --launcher.library
> /opt/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x8
> 6_1.0.100.v20080606/eclipse_1114b.so
> -startup
> /opt/eclipse/plugins/org.eclipse.equinox.launcher_1.0.100.v200
> 80509-1800.jar
> -debug /home/mfortini/eclipselog/debugfile
> -vm
> /usr/lib/jvm/java-6-sun-1.6.0.06/jre/bin/../lib/i386/client/libjvm.so
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms40m
> -Xmx256m
> -XX:MaxPermSize=256m
> -Djava.class.path=/opt/eclipse/plugins/org.eclipse.equinox.lau
> ncher_1.0.100.v20080509-1800.jar
> Install location:
> file:/opt/eclipse/
> Configuration file:
> file:/opt/eclipse/configuration/config.ini loaded
> Configuration location:
>
> file:/home/mfortini/.eclipse/org.eclipse.platform_3.4.0_147361
> 7060/configuration/
> Configuration file:
>
> file:/home/mfortini/.eclipse/org.eclipse.platform_3.4.0_147361
> 7060/configuration/config.ini
> loaded
> Shared configuration location:
> file:/opt/eclipse/configuration/
> Framework located:
>
> file:/opt/eclipse/plugins/org.eclipse.osgi_3.4.0.v20080605-1900.jar
> Framework classpath:
>
> file:/opt/eclipse/plugins/org.eclipse.osgi_3.4.0.v20080605-1900.jar
> Splash location:
>
> /opt/eclipse//plugins/org.eclipse.platform_3.3.100.v2008061720
> 00/splash.bmp
> Debug options:
> file:/home/mfortini/eclipselog/debugfile loaded
> Time to load bundles: 14
> Starting application: 1949
>
>
> GDB is
> GNU gdb 6.3.50.20051117
> Copyright 2004 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=powerpc-linux".
>
> and gdbserver is the same version.
>
> Actually, maybe also my gdb has some problems, if I go
> further debugging
> this is the output:
> GNU gdb 6.3.50.20051117
> Copyright 2004 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=powerpc-linux"...
> (gdb) target remote 172.26.6.81:2345
> Remote debugging using 172.26.6.81:2345
> 0x48015020 in ?? ()
> (gdb) br PrintHello
> Breakpoint 1 at 0x1000057c: file ../src/CNH_thread.c, line 19.
> (gdb) n
> Cannot find bounds of current function
> (gdb) c
> Continuing.
> [New thread 2001]
> [New thread 2002]
> [Switching to thread 2002]
>
> Breakpoint 1, PrintHello (threadid=0x0) at ../src/CNH_thread.c:19
> 19 int c = 0;
> (gdb) n
> 21 tid = (int)threadid;
> (gdb)
> 23 while (++c < 100) {
> (gdb)
> [New thread 2003]
> [Switching to thread 2003]
>
> Breakpoint 1, PrintHello (threadid=0x1) at ../src/CNH_thread.c:19
> 19 int c = 0;
> (gdb)
> 21 tid = (int)threadid;
> (gdb)
> 23 while (++c < 100) {
> (gdb)
> [New thread 2004]
> [Switching to thread 2004]
>
> Breakpoint 1, PrintHello (threadid=0x2) at ../src/CNH_thread.c:19
> 19 int c = 0;
> (gdb)
> 21 tid = (int)threadid;
> (gdb)
> 23 while (++c < 100) {
> (gdb)
> [New thread 2005]
> [Switching to thread 2005]
>
> Breakpoint 1, PrintHello (threadid=0x3) at ../src/CNH_thread.c:19
> 19 int c = 0;
> (gdb)
> 21 tid = (int)threadid;
> (gdb)
> 23 while (++c < 100) {
> (gdb)
> [New thread 2006]
> [Switching to thread 2006]
>
> Breakpoint 1, PrintHello (threadid=0x4) at ../src/CNH_thread.c:19
> 19 int c = 0;
> (gdb)
> warning: Invalid remote reply:
>
>
>
> Marc Khouzam ha scritto:
> > Hi,
> >
> > Which gdb and gdbserver version are you using?
> >
> > could you collect the logs before the issue happens?
> > To get the logs, you must launch eclipse with the following
> extra option:
> > -debug <fullpath>/<debugfile>
> >
> > where <debugfile> is a text file that contains the one line:
> > org.eclipse.dd.mi/debug = true
> >
> > You should launch the eclipse from a terminal where you can
> see the printouts.
> >
> > And if it is not too much trouble, can you also sent the
> text of your
> > command line session, which you say worked properly?
> >
> > Thanks
> >
> >
> >> -----Original Message-----
> >> From: dsdp-dd-dev-bounces@xxxxxxxxxxx
> >> [mailto:dsdp-dd-dev-bounces@xxxxxxxxxxx]On Behalf Of Matteo Fortini
> >> Sent: Wednesday, July 30, 2008 1:28 PM
> >> To: dsdp-dd-dev@xxxxxxxxxxx
> >> Subject: [dsdp-dd-dev] cross gdb + gdbserver libpthread
> >>
> >>
> >> We tried DSDP-DD 1.0 & 1.1, but when I try to debug a sw
> linked with
> >> pthread with a cross-platform gdb/gdbserver:
> >> - either I get a version mismatch between libthread_db and
> >> libpthread,
> >> and the debugger crashes as soon as I break on a thread
> >>
> >> - or if I set a .gdbinit file with "set solib-absolute-prefix
> >> /path/to/target_libs" in it, I don't get the error message about
> >> anymore, but the debugger is not responsive anymore and
> >> eclipse gives me
> >> timeouts
> >>
> >> Remote debugging through command line gdb/gdbserver works
> >> well, and is
> >> not crashing on me.
> >>
> >> Any solution?
> >>
> >> Thanks,
> >> Matteo
> >> _______________________________________________
> >> dsdp-dd-dev mailing list
> >> dsdp-dd-dev@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/dsdp-dd-dev
> >>
> >>
> > _______________________________________________
> > dsdp-dd-dev mailing list
> > dsdp-dd-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/dsdp-dd-dev
> >
> >
>
> _______________________________________________
> dsdp-dd-dev mailing list
> dsdp-dd-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-dd-dev
>