From: stefan.puiu@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: running gdb as root under emacs (24)
Date: Thu, 11 Jan 2018 05:47:00 -0800 (PST) [thread overview]
Message-ID: <79a65efd-756e-409f-8b35-5c2ff019a673@googlegroups.com> (raw)
In-Reply-To: <mailman.7194.1515662450.27995.help-gnu-emacs@gnu.org>
Hi Michael,
> Call "M-x gdb" from a buffer, which has a default-directory somewhere at
> "/sudo::". I'm not sure whether it works with Emacs 24, but it is worth
> a try.
Thanks for the suggestion.
I've tried this - opened up a C file from my project in emacs, then 'M-x cd' and used '/sudo::/'. I see a '@' next to the file name in the grey bar below, and if I hover over it it says 'Current directory is: remote:/sudo...'. However, running 'M-x gdb' results in gdb running as my user. Am I missing something, or was this what you suggested?
I tried this only on Emacs 24, the one that comes with Ubuntu. I can try a newer version, just to make sure.
Thanks,
Stefan.
next prev parent reply other threads:[~2018-01-11 13:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-10 16:53 running gdb as root under emacs (24) stefan.puiu
2018-01-11 9:20 ` Michael Albinus
[not found] ` <mailman.7194.1515662450.27995.help-gnu-emacs@gnu.org>
2018-01-11 13:47 ` stefan.puiu [this message]
2018-01-11 14:56 ` stefan.puiu
2018-01-12 7:45 ` Michael Albinus
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=79a65efd-756e-409f-8b35-5c2ff019a673@googlegroups.com \
--to=stefan.puiu@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.