From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Shankar K E Newsgroups: gmane.emacs.help Subject: gdb and emacs Date: 11 Jan 2003 10:48:19 GMT Organization: SSO-IT, Hewlett-Packard Co. Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: Reply-To: shankar_k_e@hotmail.com NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1042282541 9496 80.91.224.249 (11 Jan 2003 10:55:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 11 Jan 2003 10:55:41 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18XJIi-0002T2-00 for ; Sat, 11 Jan 2003 11:55:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18XJIQ-0007Nl-04 for gnu-help-gnu-emacs@m.gmane.org; Sat, 11 Jan 2003 05:55:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!sdd.hp.com!news.cup.hp.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: eb9882.india.hp.com User-Agent: slrn/0.9.7.4 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:108836 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5365 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5365 Hi, I want to display line numbers when I am debugging using gdb under emacs (using gud). The source file is displayed in the other window, I need line numbers to be displayed along with the source file. I want this to happen only when I use gdb under emacs. How do I start gud after the environment settings have been changed, gud seems to be using the settings when emacs started off from the shell. I restart emacs whenever there is a change in the environment, could you suggest me an alternative option. Also Is there any environment variable which is set if I am within a emacs session. I would like to do some additional processing in my .bashrc when emacs is launched. Please let me know on how to go about it. Thanks in Advance -- Shankar