[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gud: how to set the LD_LIBRARY_PATH before run?

From: sunway
Subject: Re: gud: how to set the LD_LIBRARY_PATH before run?
Date: Fri, 6 Jun 2008 09:18:17 +0800
User-agent: Mutt/1.5.17 (2007-11-01)

but the LD_LIBRARY_PATH environment variable is too long, and I don't
want to set it every time when debugging the program in GUD, is it
possiable to put the `set environment ..` in a bash script file and just
source it when using gdb?

On Fri, Jun 06, 2008 at 01:48:54AM +1200, Nick Roberts wrote:
> > My program need to link some shared libs using export
> > LD_LIBRARY_PATH=.., but when using gud, but how to export the
> > environment variable in gud?
>If you mean set the environment variable for the program being debugged, then
>this is really a GDB question and it's described in the GDB info manual:
>       set environment VARNAME [ = VALUE]
>       set environment LD_LIBRARY_PATH = /your/path1:/your_path2


A bold attempt is half success.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]