public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: frank@betaversion.net, gdb@sources.redhat.com
Subject: Re: Remote debugging and dynamic libraries
Date: Thu, 27 Oct 2005 14:41:00 -0000	[thread overview]
Message-ID: <20051027144115.GA24055@nevyn.them.org> (raw)
In-Reply-To: <20051027143943.GA23938@nevyn.them.org>

Sorry for the duplicate, fat-fingered the list address last time.

On Thu, Oct 27, 2005 at 10:52:00AM +0200, frank@betaversion.net wrote:
> Hello,
> 
> i'm trying to remote debug a program running on an arm system running
> linux but i ran into various problems. If i interrupt the
> debugged program i can't get symbolic information where it stopped.
> Also backtraces don't seem to work.
> 
> frank@linux:~/> /usr/local/bin/arm-linux-gdb
> GNU gdb 6.3
> This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-linux".
> (gdb) target remote 192.168.1.133:5555
> Remote debugging using 192.168.1.133:5555
> 0x400028b0 in ?? ()
> (gdb) symbol-file test

Don't do this.  Use "file", not "symbol-file".

Can you tell me where you found anything which suggested that you
should use symbol-file?  This bug is reported several times a year, and
I still don't know where the incorrect documentation is - I don't think
it's part of GDB.

Without an "exec file" loaded, which symbol-file does not do, GDB won't
find the dynamic loader or be able to load shared libraries.

> 1)
>    set solib-absolute-prefix /usr/local/arm/arm-linux/

This is the correct way - IFF the directory under that path looks like
a root filesystem.  If it's laid out like an old-style cross toolchain,
this may not work.  Paths should match the paths on the target.

> nor:
> 2)
> set solib-absolute-prefix /dev/null
> set solib-search-path /usr/local/arm/arm-linux/lib

This is not the correct way nowadays.

-- 
Daniel Jacobowitz
CodeSourcery, LLC

  parent reply	other threads:[~2005-10-27 14:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-27  8:56 frank
     [not found] ` <20051027143943.GA23938@nevyn.them.org>
2005-10-27 14:41   ` Daniel Jacobowitz [this message]
2005-10-31 19:55     ` Frank Meerkoetter
2005-11-07  0:12       ` Daniel Jacobowitz

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=20051027144115.GA24055@nevyn.them.org \
    --to=drow@false.org \
    --cc=frank@betaversion.net \
    --cc=gdb@sources.redhat.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).