From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: stefan.puiu@gmail.com Newsgroups: gmane.emacs.help Subject: Re: running gdb as root under emacs (24) Date: Thu, 11 Jan 2018 05:47:00 -0800 (PST) Message-ID: <79a65efd-756e-409f-8b35-5c2ff019a673@googlegroups.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1515678649 7114 195.159.176.226 (11 Jan 2018 13:50:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 11 Jan 2018 13:50:49 +0000 (UTC) Injection-Date: Thu, 11 Jan 2018 13:47:01 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 11 14:50:45 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eZdFh-0001Q0-UO for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jan 2018 14:50:42 +0100 Original-Received: from localhost ([::1]:44218 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eZdHh-0002Bd-HN for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Jan 2018 08:52:45 -0500 X-Received: by 10.55.184.135 with SMTP id i129mr11519698qkf.38.1515678421095; Thu, 11 Jan 2018 05:47:01 -0800 (PST) X-Received: by 10.31.10.199 with SMTP id 190mr2438751vkk.3.1515678420856; Thu, 11 Jan 2018 05:47:00 -0800 (PST) Original-Path: usenet.stanford.edu!i22no107707qta.1!news-out.google.com!t48ni2232qtc.1!nntp.google.com!i22no107703qta.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.226.172.43; posting-account=zoTxwQoAAABg4AQzY_r8k_HEVmMPN3k5 Original-NNTP-Posting-Host: 193.226.172.43 Original-Xref: usenet.stanford.edu gnu.emacs.help:221535 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115652 Archived-At: 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.=20 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 be= low, 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 missin= g something, or was this what you suggested?=20 I tried this only on Emacs 24, the one that comes with Ubuntu. I can try a = newer version, just to make sure.=20 Thanks, Stefan.