From: Kris Warkentin <KEWarken@qnx.com>
To: 'Christophe LYON' <christophe.lyon@st.com>,
Roberto Brunelli <brunelli@itc.it>
Cc: gdb@sources.redhat.com
Subject: RE: Debugging with linked shared libraries ....
Date: Tue, 25 Oct 2005 14:46:00 -0000 [thread overview]
Message-ID: <3518719F06577C4F85DA618E3C37AB9101CFC85F@nimbus.ott.qnx.com> (raw)
Best to 'set solib-search-path <path to my stuff>' in gdb. Try putting it
in your .gdbinit.
cheers,
Kris
> -----Original Message-----
> From: gdb-owner@sources.redhat.com
> [mailto:gdb-owner@sources.redhat.com] On Behalf Of Christophe LYON
> Sent: Tuesday, October 25, 2005 9:55 AM
> To: Roberto Brunelli
> Cc: gdb@sources.redhat.com
> Subject: Re: Debugging with linked shared libraries ....
>
>
> > I would like to debug a c++ program that links shared libraries
> > (files) in non standard places:
> >
> > 1. I set the LD_LIBRARY_PATH so that the program runs fine from my
> > (c)sh
> >
> > 2. I execute
> >
> > gdb myProg
> >
> > 3. but when I 'run'
> >
>
> Presumably your .cshrc resets your LD_LIBRARY_PATH.
> 'run' starts a new shell, and thus sources your .cshrc.
>
> You have to set your LD_LIBRARY_PATH in your .cshrc
>
> Christophe.
>
next reply other threads:[~2005-10-25 14:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-25 14:46 Kris Warkentin [this message]
2005-10-26 5:35 ` How to unsuscribe? Gengis Toledo
2005-10-26 6:20 ` Joel Brobecker
[not found] <1130247165.27815.ezmlm@sources.redhat.com>
[not found] ` <435E3748.5000901@itc.it>
2005-10-25 13:55 ` Debugging with linked shared libraries Christophe LYON
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=3518719F06577C4F85DA618E3C37AB9101CFC85F@nimbus.ott.qnx.com \
--to=kewarken@qnx.com \
--cc=brunelli@itc.it \
--cc=christophe.lyon@st.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