Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Tim Harvey <tim_harvey@yahoo.com>
Cc: Anil Gunturu <anil_gunturu@yahoo.com>, gdb@sources.redhat.com
Subject: Re: howto build gdb / gdbserver for x86 host with arm-linux target?
Date: Fri, 11 Feb 2005 15:45:00 -0000	[thread overview]
Message-ID: <20050211141325.GA17247@nevyn.them.org> (raw)
In-Reply-To: <20050211052941.99098.qmail@web30509.mail.mud.yahoo.com>

On Thu, Feb 10, 2005 at 09:29:41PM -0800, Tim Harvey wrote:
> $ cd gdb-6.3
> $ ./configure --target=arm-linux
> $ make
> $ file gdb/gdb
> gdb/gdb: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for
> GNU/Linux 2.2.5, dynamically linked (uses shared libs), not stripped
> $ cd gdb/gdbserver
> $ export CC=/usr/local/bin/arm-linux-gcc
> $ ./configure --host=arm-linux
> $ make
> $ file gdbserver
> gdbserver: ELF 32-bit MSB executable, ARM, version 1 (ARM), for GNU/Linux
> 2.4.3, dynamically linked (uses shared libs), not stripped
> 
> When trying to execute my app on the target with this gdbserver I get:
> 
> # gdbserver foo:1234 myApp
> gdbserver: error while loading shared libraries: libthread_db.so.1: cannot open
> shared object file: No such file or directory
> 
> My target's glibc doesn't have a libthread_db and I'm not really sure what this
> even is vs libthread.

There's one in your cross development environment or gdbserver wouldn't
have even built.

You have to use the same libraries in your cross environment and on
your target if you want things to work...

> I don't know if the gdbserver that the snapgear-3.1.1 distro is building is
> correct or not.  When I use it I get the 'Reply contains invalid hex digit 59'
> error and I'm still not understanding if this is pointing to a problem with
> gdbserver or the gdb host.

Are you using it with the arm-linux-gdb you built above?  In your first
message you were using your host GDB.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


  reply	other threads:[~2005-02-11 14:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050211024733.30134.qmail@web30706.mail.mud.yahoo.com>
2005-02-11  4:28 ` Tim Harvey
2005-02-11  5:30   ` Daniel Jacobowitz
2005-02-11 14:10     ` Tim Harvey
2005-02-11 15:45       ` Daniel Jacobowitz [this message]
2005-02-11 18:37         ` Tim Harvey
2005-02-12  2:53           ` Daniel Jacobowitz
2005-02-11  4:04 Tim Harvey

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=20050211141325.GA17247@nevyn.them.org \
    --to=drow@false.org \
    --cc=anil_gunturu@yahoo.com \
    --cc=gdb@sources.redhat.com \
    --cc=tim_harvey@yahoo.com \
    /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