From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: gud: how to set the LD_LIBRARY_PATH before run? Date: Sat, 7 Jun 2008 09:32:42 +1200 Message-ID: <18505.44282.140465.613804@kahikatea.snap.net.nz> References: <18503.61126.467081.917442@kahikatea.snap.net.nz> <20080606011817.GA24054@sunway.bupt.edu.cn> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212789764 13780 80.91.229.12 (6 Jun 2008 22:02:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 22:02:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: sunway Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jun 07 00:03:26 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K4k1s-0007IX-MI for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2008 00:03:24 +0200 Original-Received: from localhost ([127.0.0.1]:33589 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4k16-00067s-2Y for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 18:02:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4k0n-00067a-HP for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 18:02:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4k0m-00066A-10 for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 18:02:17 -0400 Original-Received: from [199.232.76.173] (port=46804 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4k0l-000661-QQ for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 18:02:15 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.25]:58407) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K4k0l-0003PE-Ba for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 18:02:15 -0400 Original-Received: from kahikatea.snap.net.nz (52.30.255.123.static.snap.net.nz [123.255.30.52]) by viper.snap.net.nz (Postfix) with ESMTP id 890253DA87B; Sat, 7 Jun 2008 09:32:44 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 239E68FC6D; Sat, 7 Jun 2008 09:32:43 +1200 (NZST) In-Reply-To: <20080606011817.GA24054@sunway.bupt.edu.cn> X-Mailer: VM 7.19 under Emacs 22.2.50.2 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54556 Archived-At: > 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