all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sunway <sunwayforever@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: gud: how to set the LD_LIBRARY_PATH before run?
Date: Fri, 6 Jun 2008 09:18:17 +0800	[thread overview]
Message-ID: <20080606011817.GA24054@sunway.bupt.edu.cn> (raw)
In-Reply-To: <18503.61126.467081.917442@kahikatea.snap.net.nz>

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.




  reply	other threads:[~2008-06-06  1:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-06-06 21:32     ` Nick Roberts

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=20080606011817.GA24054@sunway.bupt.edu.cn \
    --to=sunwayforever@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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.