Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* set env affects host?
@ 2002-11-13 13:02 Graeme Peterson
  2002-11-13 14:44 ` Graeme Peterson
  0 siblings, 1 reply; 5+ messages in thread
From: Graeme Peterson @ 2002-11-13 13:02 UTC (permalink / raw)
  To: gdb


Hi, all.

In gdb, according to the help, typing "set env LD_LIBRARY_PATH=<some_path>"
should set the env var LD_LIBRARY_PATH for the inferior.

In gdb-5.2.1 (on QNX6), it seems that it also affects the host, in that
symbol information for shared objects is now searched for in that new
LD_LIBRARY_PATH.

So, on my host I have the libs in "/<target_cpu>/lib/test/".  On my target
they live in "/lib/test". 

In order for GDB to both load the symbols and allow the inferior to run, I
have to have both "/lib/test" and "/<target_cpu>/lib/test" in the set env
LD_LIBRARY_PATH command.

I do not have the ability to check this with "target remote" on a non-QNX
setup.

Can anyone verify if this is expected behavior?  It seems to me that the
new LD_LIBRARY_PATH should be passed to the inferior only, and that GDB's
environment (if solib-search-path is not set) should be used for loading
shared object symbols.

Thanks in advance.
GP


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-11-14  2:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-13 13:02 set env affects host? Graeme Peterson
2002-11-13 14:44 ` Graeme Peterson
2002-11-13 14:47   ` Paul Koning
2002-11-13 14:57     ` Daniel Jacobowitz
2002-11-13 18:56       ` gp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox