Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@cygnus.com>
To: Stephen Smith <ischis2@home.com>, GDB <gdb@sources.redhat.com>
Cc: Andrew Cagney <ac131313@cygnus.com>,
	Kevin Buettner <kevinb@cygnus.com>,
	Michael Elizabeth Chastain <chastain@cygnus.com>
Subject: Re: Loading shared libraries
Date: Tue, 10 Apr 2001 15:32:00 -0000	[thread overview]
Message-ID: <1010410223150.ZM12974@ocotillo.lan> (raw)
In-Reply-To: <3AD346AD.4D432A65@home.com>

On Apr 10, 10:45am, Stephen Smith wrote:

> I have a shared library liblib1.so that I want to load at address 0x4020000.
> 
> If I call add_symbol_file_command( "liblib1.so 0x4020000", 0 ), the
> program starts running and gdb can't take control of it - I haven't
> figured out why yet.

I don't have much experience with this function, but it seems to me
that you ought to be using a different mechanism.

> How would you suggest loading the library?  BTW, I don't want to do
> it at the console but rather in the program.

Just to be clear, we're talking about loading the symbols associated
with a shared library, right?

If so, I would expect that solib.c would handle this for you assuming
that you have the rest of the solib backend working correctly.  (See
symbol_add_stub().)

Kevin


      reply	other threads:[~2001-04-10 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-10 11:11 Stephen Smith
2001-04-10 15:32 ` Kevin Buettner [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=1010410223150.ZM12974@ocotillo.lan \
    --to=kevinb@cygnus.com \
    --cc=ac131313@cygnus.com \
    --cc=chastain@cygnus.com \
    --cc=gdb@sources.redhat.com \
    --cc=ischis2@home.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