From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vincent Liard Newsgroups: gmane.emacs.help Subject: emacs gdb program launcher Date: Wed, 18 Mar 2009 16:48:45 +0000 (UTC) Organization: INRIA - CR Paris-Rocquencourt Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1237440851 22504 80.91.229.12 (19 Mar 2009 05:34:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Mar 2009 05:34:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 19 06:35:28 2009 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 1LkAue-0007qC-8q for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 06:35:28 +0100 Original-Received: from localhost ([127.0.0.1]:34178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LkAtH-0002z3-Oo for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Mar 2009 01:34:03 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!feeder.erje.net!news2.arglkargh.de!news.ecp.fr!news-rocq.inria.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: eccica.inria.fr Original-X-Trace: news-rocq.inria.fr 1237394925 18523 128.93.1.81 (18 Mar 2009 16:48:45 GMT) Original-X-Complaints-To: newsmaster@inria.fr User-Agent: Pan/0.132 (Waxed in Black) Original-Xref: news.stanford.edu gnu.emacs.help:167757 X-Mailman-Approved-At: Thu, 19 Mar 2009 01:32:15 -0400 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:63067 Archived-At: Hi, I'm working on a program that has to be launched from a script which sets up the execution environment. Fortunately enough, the script provides an option to start it with GDB and it works ok. However, I would like to run this program with GDB from within emacs, as can usually be done. Thus, I start GDB with « M-x gdb » but replace the command with the program's launcher. And it works, but rather than opening the source code with emacs buffers, it merely prints lines to be executed in the *gud* buffer as it would do with GDB from command line. I (guess I) undestand GDB is unaware it has been launched from within emacs but I don't see how to make it interact properly... I've messed a bit with gdb-show-main which was set no NIL but it doesn't seem to change anything. Could anyone give me a clue ? Thanks in advance, Vincent