[oe] oe's GDB 7.0 doesn't load symbols for me(csl does)
Khem Raj
raj.khem at gmail.com
Tue Feb 9 21:02:08 UTC 2010
On (09/02/10 18:25), GNUtoo wrote:
> Hi,
> Here's my setup:
>
> htcdream.conf
> shr.conf
> org.openembedded.dev branch at afc0667965549d0ac1cc5cd93a30c2aa8e47dc28
> bitbake gdb-cross
>
> I did the following:
> the following 3 devices are implicated:
> *1 build laptop
> *1 desktop
> *1 htcdream
> The htcdream is connected to the desktop which is on the same network
> than the laptop.
>
> Openssh(not dropbear) is runing on the htcdream.
>
> So I do that on the target:
> gdbserver 127.0.0.1:8022 Xorg
>
> And that on the desktop:
> iptables -t nat -A PREROUTING -p tcp --dport 22 -i wlan0 -j DNAT --to
> 192.168.0.202:22
>
> And that on the laptop:
> # sshfs root at desktop:/ /mnt/NFS
this will mount / on desktop as /mnt/NFS on your laptop.
> # source
> ~/oetmp/deploy/addons/arm-oe-linux-gnueabi-shr-htcdream-devshell
> # ./arm-oe-linux-gnueabi-gdb
> [OE::arm-oe-linux-gnueabi-shr-htcdream]:~$ arm-oe-linux-gnueabi-gdb
> GNU gdb (GDB) 7.0
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "--host=i686-linux
> --target=arm-oe-linux-gnueabi".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> (gdb) set sysroot /mnt/NFS
> (gdb) file /mnt/NFS/usr/bin/Xorg
> Reading symbols from /mnt/NFS/usr/bin/Xorg...Reading symbols
> from /mnt/NFS/usr/bin/.debug/Xorg...done.
> (no debugging symbols found)...done.
>
>
> And on my desktop with codesourcey:
>
> # sshfs root at desktop:/mnt/embedded_rootfs
the above command seems to be incomplete
Make sure that you are loading same symbol files in both cases
> # cd .../arm-2009q3/bin
> # ./arm-none-linux-gnueabi-gdb
> GNU gdb (Sourcery G++ Lite 2009q3-67) 6.8.50.20090630-cvs
> Copyright (C) 2009 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "--host=i686-pc-linux-gnu
> --target=arm-none-linux-gnueabi".
> For bug reporting instructions, please see:
> <https://support.codesourcery.com/GNUToolchain/>.
> (gdb) set sysroot /mnt/embedded_rootfs/
> (gdb) file /mnt/embedded_rootfs/usr/bin/Xorg
> Reading symbols from /mnt/embedded_rootfs/usr/bin/Xorg...Reading symbols
> from /mnt/embedded_rootfs/usr/bin/.debug/Xorg...done.
> done.
>
> Note that codesourcey corrupt the frames but not the oe gdb
> so oe's gdb is usable...in assembly...
>
> Denis.
>
>
>
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
More information about the Openembedded-devel
mailing list