public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: johnmb <johnmblackburn@googlemail.com>
Cc: gdb@sourceware.org
Subject: Re: Error while mapping shared library sections
Date: Thu, 27 Oct 2011 16:17:00 -0000	[thread overview]
Message-ID: <20111027161702.GP335@adacore.com> (raw)
In-Reply-To: <32732200.post@talk.nabble.com>

> All the libraries are at the locations in the remote target as given
> in the error messages so I don't understand why this is happening.  I
> did read in several google located accounts that this is fixed by
> upgrading gdb to version 6.1; however I am using version 6.8 so it
> can't be that.

All the libraries should be available on the host as well, so that GDB
can read the symbols from them.

Exerpt from the GDB Manual:

    20.3.2 Connecting to gdbserver
    
    Run gdb on the host system.
    
    First make sure you have the necessary symbol files. Load symbols
    for your application using the file command before you connect. Use
    set sysroot to locate target libraries (unless your gdb was compiled
    with the correct sysroot using --with-sysroot). 

-- 
Joel

  reply	other threads:[~2011-10-27 16:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-27 15:45 johnmb
2011-10-27 16:17 ` Joel Brobecker [this message]
2011-10-27 17:00 ` Pedro Alves
  -- strict thread matches above, loose matches on Subject: below --
2008-04-15  8:46 spas
2008-04-15 15:06 ` 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=20111027161702.GP335@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb@sourceware.org \
    --cc=johnmblackburn@googlemail.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).