From: Bob Rossi <bob@brasko.net>
To: GDB <gdb@sources.redhat.com>
Subject: Re: environment variables in CLI
Date: Thu, 19 May 2005 16:50:00 -0000 [thread overview]
Message-ID: <20050519164925.GC26748@white> (raw)
In-Reply-To: <20050519164311.GB26748@white>
On Thu, May 19, 2005 at 12:43:11PM -0400, Bob Rossi wrote:
> On Thu, May 19, 2005 at 12:25:43PM -0400, Daniel Jacobowitz wrote:
> > On Thu, May 19, 2005 at 12:23:10PM -0400, Bob Rossi wrote:
> > > Hi,
> > >
> > > I'm trying to figure out how to set the LD_LIBRARY_PATH in GDB once I
> > > start it up. The command 'set environment
> > > LD_LIBRARY_PATH=/home/foo/lib' works. However, I want to do something
> > > like 'set environment LD_LIBRARY_PATH=$SOME_PATH/lib:$LD_LIBRARY_PATH'.
> > > Is this possible from the CLI?
> >
> > Nope.
>
> OK, I suppose this could be a nice feature. Do you think it would be
> terribly complicated?
>
> > > Actually, I couldn't figure out how to tell GDB where to look for shared
> > > objects, that's why I ended up using the LD_LIBRARY_PATH.
> >
> > set solib-search-path? set solib-absolute-prefix? What are you trying
> > to do?
>
> Well, I'm probably just messing things up. Here's what I have. The .so's
> are in /home/foo/lib. libqt.so is definatly there.
>
> (gdb) set solib-search-path /home/foo/lib
> (gdb) b main
> r
> Breakpoint 1 at 0x80af805: file main.cpp, line 469.
> (gdb) r
> main-program: error while loading shared libraries: libqt.so: cannot open shared object file: No such file or directory
>
> Program exited with code 0177.
> (gdb) set solib-search-path /home/foo/lib
> (gdb) r
> main-program: error while loading shared libraries: libqt.so: cannot open shared object file: No such file or directory
>
> Program exited with code 0177.
> (gdb)
>
> However, If I set the LD_LIBRARY_PATH it works. I'm using GDB 6.1 which
> is rather old. I suppose I should upgrade.
I just tried this with gdb 6.3 and get the same problems.
Bob Rossi
next prev parent reply other threads:[~2005-05-19 16:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 16:23 Bob Rossi
2005-05-19 16:25 ` Daniel Jacobowitz
2005-05-19 16:43 ` Bob Rossi
2005-05-19 16:50 ` Bob Rossi [this message]
2005-05-19 17:08 ` Daniel Jacobowitz
2005-05-19 17:33 ` Bob Rossi
2005-05-19 18:10 ` 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=20050519164925.GC26748@white \
--to=bob@brasko.net \
--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