From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kidologie Newsgroups: gmane.emacs.help Subject: Emacs, gdb and runsparc. Date: Mon, 24 Nov 2008 13:22:06 -0800 (PST) Organization: http://groups.google.com Message-ID: <755dc0f1-561c-4be7-912b-98e526ad878a@t3g2000yqa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1227563752 6745 80.91.229.12 (24 Nov 2008 21:55:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 24 Nov 2008 21:55:52 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 24 22:56:54 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 1L4jQH-0001em-8J for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Nov 2008 22:56:49 +0100 Original-Received: from localhost ([127.0.0.1]:55897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4jP8-0003pM-2U for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Nov 2008 16:55:38 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t3g2000yqa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 64.102.48.239 Original-X-Trace: posting.google.com 1227561727 27567 127.0.0.1 (24 Nov 2008 21:22:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 24 Nov 2008 21:22:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: t3g2000yqa.googlegroups.com; posting-host=64.102.48.239; posting-account=rKOZvgoAAACXuKh1uLk5HCu7Xwj27Egq User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164739 X-Mailman-Approved-At: Mon, 24 Nov 2008 16:55:20 -0500 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:60071 Archived-At: Hi, I have a strange requirement where I want to run gdb on a linux machine, but target a solaris image using a simulator. The simulator being used is runsol/runsparc. Outside of emacs, I would do 'runsparc gdb ./' and this works fine. But through emacs I am having issues. For example: M-x gdb Run gdb as: runsparc /solaris/router/bin/gdb Error is: "runsparc" is expecting "a native path to a binary or shell script" I think what's going on essentially is that, gdb emacs is being handed an additional command: runsol, which it is interpreting as being the debugger. The additional file names are treated as files to be debugged. By pre-pending the fully-qualified path, emacs is forcing the change to the CWD to that path. So I think I need an emacs hook to handle this integration? An alternative is to actually copy 'gdb' to the working directory and then this works: M-x gdb: runsparc ./gdb ./ My lisp skills being very rudimentary - any advice would be most welcome! Thanks!