From: Lee Sau Dan <danlee@informatik.uni-freiburg.de>
Subject: Re: gdb and emacs
Date: 20 Jan 2003 08:50:32 +0100 [thread overview]
Message-ID: <m3d6muhmkn.fsf@mika.informatik.uni-freiburg.de> (raw)
In-Reply-To: slrnb1vu36.f58.shankark@eb9882.india.hp.com
>>>>> "Shankar" == Shankar K E <shankar_k_e@hotmail.com> writes:
Shankar> Hi, I want to display line numbers when I am debugging
Shankar> using gdb under emacs (using gud).
Are you sure? I never need the line numbers, because Emacs (gud)
takes care of them and shows me the current line automatically. For
setting breakpoint, go to the source file and then C-x SPC.
Shankar> How do I start gud after the environment settings have
Shankar> been changed, gud seems to be using the settings when
Shankar> emacs started off from the shell.
B'cos environments are inherited by child processes from their
parents. When you start the gdb process from gud/Emacs, it of course
inherits the environment of Emacs.
Shankar> I restart emacs whenever there is a change in the
Shankar> environment, could you suggest me an alternative option.
(setenv "FOO" "BAR")
(getenv "FOO")
I often do these in the *scratch* buffer (lisp-interaction-mode).
Just type one of the above and then C-j.
Shankar> Also Is there any environment variable which is set if I
Shankar> am within a emacs session.
It depends on the terminal-emulation package that you're using. Emacs
has so many. RTFM.
A quick check is to run the 'env' shell command and redirect the
output to a file. Do this both in a vanilla shell and a shell running
under Emacs. Then, use 'diff' to check what are different.
--
Lee Sau Dan 李守敦(Big5) ~{@nJX6X~}(HZ)
E-mail: danlee@informatik.uni-freiburg.de
Home page: http://www.informatik.uni-freiburg.de/~danlee
prev parent reply other threads:[~2003-01-20 7:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-11 10:48 gdb and emacs Shankar K E
2003-01-20 7:50 ` Lee Sau Dan [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d6muhmkn.fsf@mika.informatik.uni-freiburg.de \
--to=danlee@informatik.uni-freiburg.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).