All of lore.kernel.org
 help / color / mirror / Atom feed
* oe's GDB 7.0 doesn't load symbols for me(csl does)
@ 2010-02-09 17:25 GNUtoo
  2010-02-09 21:02 ` Khem Raj
  0 siblings, 1 reply; 2+ messages in thread
From: GNUtoo @ 2010-02-09 17:25 UTC (permalink / raw)
  To: openembedded-devel

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@desktop:/ /mnt/NFS
# 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@desktop:/mnt/embedded_rootfs
# 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.







^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: oe's GDB 7.0 doesn't load symbols for me(csl does)
  2010-02-09 17:25 oe's GDB 7.0 doesn't load symbols for me(csl does) GNUtoo
@ 2010-02-09 21:02 ` Khem Raj
  0 siblings, 0 replies; 2+ messages in thread
From: Khem Raj @ 2010-02-09 21:02 UTC (permalink / raw)
  To: openembedded-devel

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@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@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@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-09 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-09 17:25 oe's GDB 7.0 doesn't load symbols for me(csl does) GNUtoo
2010-02-09 21:02 ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.