Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kunal Parmar <kunal.parmar@codito.com>
To: gdb@sources.redhat.com
Subject: Re: shared library symbols not loaded automatically
Date: Fri, 21 Jul 2006 16:14:00 -0000	[thread overview]
Message-ID: <44C0E7F0.1010506@codito.com> (raw)
In-Reply-To: <20060712181525.GA26898@nevyn.them.org>

Hi Daniel,
I am not clear how setting solib-absolute-prefix will solve this problem.
The manual says that it is used as a prefix for searching the libraries 
at runtime.
When I use the command sharedlibrary at the gdb prompt, the libraries 
are correctly loaded.
Doesn't this mean that I do not need to set the solib-absolute-prefix??

Daniel Jacobowitz wrote:
> On Wed, Jul 12, 2006 at 11:37:25PM +0530, Kunal Parmar wrote:
>   
>> Hello,
>> I am trying to debug a program which uses shared libraries.
>> My host is i386-linux and target is arm-linux.
>> While debugging, gdb shows me the shared libraries used by my program
>> but it does not load the symbols automatically (auto-solib-add is set).
>> I have to explicitly use the sharedlibrary command after which the shared
>> library symbols are read in.
>>     
>
> It looks like you need to set solib-absolute-prefix.
>
>   
>>> Reading symbols from /lib/libc.so.6...done.
>>> Loaded symbols for /lib/libc.so.6
>>>       
>
> This is probably loading your system's /lib/libc.so.6.
>
>   

-- 
Kunal Parmar
Software Developer,
Codito Technologies Pvt. Ltd. (www.codito.com)

Office: +91 20 26051367 ext. 133
Mobile: +91 98230 28171


  reply	other threads:[~2006-07-21 14:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-12 18:12 Kunal Parmar
2006-07-12 18:15 ` Daniel Jacobowitz
2006-07-21 16:14   ` Kunal Parmar [this message]
2006-07-22 20:09     ` Daniel Jacobowitz
2006-07-22 21:07       ` Paul Koning
2006-07-22 23:17         ` Daniel Jacobowitz
2006-07-23 22:36       ` Kunal Parmar

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=44C0E7F0.1010506@codito.com \
    --to=kunal.parmar@codito.com \
    --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