* Loading shared libraries
@ 2001-04-10 11:11 Stephen Smith
2001-04-10 15:32 ` Kevin Buettner
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Smith @ 2001-04-10 11:11 UTC (permalink / raw)
To: GDB; +Cc: Andrew Cagney, Kevin Buettner, Michael Elizabeth Chastain
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.
How would you suggest loading the library? BTW, I don't want to do it at the console but rather in the program.
Stephen
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Loading shared libraries
2001-04-10 11:11 Loading shared libraries Stephen Smith
@ 2001-04-10 15:32 ` Kevin Buettner
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Buettner @ 2001-04-10 15:32 UTC (permalink / raw)
To: Stephen Smith, GDB
Cc: Andrew Cagney, Kevin Buettner, Michael Elizabeth Chastain
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-04-10 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-10 11:11 Loading shared libraries Stephen Smith
2001-04-10 15:32 ` Kevin Buettner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox