all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* gud: how to set the LD_LIBRARY_PATH before run?
@ 2008-06-05  2:36 sunway
  2008-06-05 13:48 ` Nick Roberts
  0 siblings, 1 reply; 4+ messages in thread
From: sunway @ 2008-06-05  2:36 UTC (permalink / raw)
  To: help-gnu-emacs

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?


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

* Re: gud: how to set the LD_LIBRARY_PATH before run?
  2008-06-05  2:36 gud: how to set the LD_LIBRARY_PATH before run? sunway
@ 2008-06-05 13:48 ` Nick Roberts
  2008-06-06  1:18   ` sunway
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Roberts @ 2008-06-05 13:48 UTC (permalink / raw)
  To: sunway; +Cc: help-gnu-emacs

 > 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

-- 
Nick                                           http://www.inet.net.nz/~nickrob




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

* Re: gud: how to set the LD_LIBRARY_PATH before run?
  2008-06-05 13:48 ` Nick Roberts
@ 2008-06-06  1:18   ` sunway
  2008-06-06 21:32     ` Nick Roberts
  0 siblings, 1 reply; 4+ messages in thread
From: sunway @ 2008-06-06  1:18 UTC (permalink / raw)
  To: help-gnu-emacs

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
>
>-- 
>Nick                                           http://www.inet.net.nz/~nickrob

-- 
sunway

A bold attempt is half success.




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

* Re: gud: how to set the LD_LIBRARY_PATH before run?
  2008-06-06  1:18   ` sunway
@ 2008-06-06 21:32     ` Nick Roberts
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Roberts @ 2008-06-06 21:32 UTC (permalink / raw)
  To: sunway; +Cc: help-gnu-emacs

 > 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?

In a script file yes, but it's not a bash one.  GDB has it's own syntax for
'canned' sequences of commands.  Again it's all described in the GDB info
manual.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




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

end of thread, other threads:[~2008-06-06 21:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-05  2:36 gud: how to set the LD_LIBRARY_PATH before run? sunway
2008-06-05 13:48 ` Nick Roberts
2008-06-06  1:18   ` sunway
2008-06-06 21:32     ` Nick Roberts

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.