Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: oe's GDB 7.0 doesn't load symbols for me(csl does)
Date: Tue, 9 Feb 2010 13:02:08 -0800	[thread overview]
Message-ID: <20100209210208.GB3142@gmail.com> (raw)
In-Reply-To: <1265736322.3731.23.camel@gnutoo-desktop>

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



      reply	other threads:[~2010-02-09 21:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100209210208.GB3142@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox