From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: how to start the intel debugger with dgb in emacs Date: Sat, 7 Jul 2007 10:44:58 +1200 Message-ID: <18062.50666.412514.855597@kahikatea.snap.net.nz> References: <1183730000.715731.44240@n2g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1183761942 25797 80.91.229.12 (6 Jul 2007 22:45:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 6 Jul 2007 22:45:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mirko Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 07 00:45:39 2007 connect(): Connection refused 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 1I6wYS-0000LL-Aa for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jul 2007 00:45:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6wYR-0001Sv-Lc for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jul 2007 18:45:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I6wY9-0001Q0-5H for help-gnu-emacs@gnu.org; Fri, 06 Jul 2007 18:45:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I6wY7-0001LT-Bq for help-gnu-emacs@gnu.org; Fri, 06 Jul 2007 18:45:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6wY6-0001LO-V5 for help-gnu-emacs@gnu.org; Fri, 06 Jul 2007 18:45:15 -0400 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I6wY5-0008RX-TW for help-gnu-emacs@gnu.org; Fri, 06 Jul 2007 18:45:14 -0400 Original-Received: from kahikatea.snap.net.nz (127.63.255.123.dynamic.snap.net.nz [123.255.63.127]) by viper.snap.net.nz (Postfix) with ESMTP id 35EBE3D9588; Sat, 7 Jul 2007 10:45:07 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id B532E8FBF6; Sat, 7 Jul 2007 10:44:59 +1200 (NZST) Original-Newsgroups: gnu.emacs.help In-Reply-To: <1183730000.715731.44240@n2g2000hse.googlegroups.com> X-Mailer: VM 7.19 under Emacs 22.1.50.11 X-detected-kernel: Linux 2.4-2.6 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:45524 Archived-At: Mirko writes: > Hello, > > I am trying to invoke the intel debugger (idb) within emacs 22.1 (on > windows). According to the documentation, I am supposed to invoke gdb > with the following command: > > C:\Program files\Intel\IDB\10.0\Bin\idb -gdb -fullname myprogram > > However, the space in "Program files" causes a problem. (Searching for > program, no such file) I recently made a commit to the CVS repository that fixes this I think. If you can't get the CVS version of Emacs, please apply the patch below to gud.el and evaluate the function string->strings. Then "C:\Program files\Intel\IDB\10.0\Bin\idb" -gdb -fullname myprogram should work. -- Nick http://www.inet.net.nz/~nickrob (defun string->strings (string &optional separator) "Split the STRING into a list of strings. It understands elisp style quoting within STRING such that (string->strings (strings->string strs)) == strs The SEPARATOR regexp defaults to \"\\s-+\"." (let ((sep (or separator "\\s-+")) (i (string-match "[\"]" string))) (if (null i) (split-string string sep t) ; no quoting: easy (append (unless (eq i 0) (split-string (substring string 0 i) sep t)) (let ((rfs (read-from-string string i))) (cons (car rfs) (string->strings (substring string (cdr rfs)) sep))))))) *** gud.el 13 May 2007 16:21:01 +1200 1.130 --- gud.el 28 Jun 2007 12:56:38 +1200 *************** comint mode, which see." *** 2462,2468 **** ;; for local variables in the debugger buffer. (defun gud-common-init (command-line massage-args marker-filter &optional find-file) ! (let* ((words (split-string command-line)) (program (car words)) (dir default-directory) ;; Extract the file name from WORDS --- 2462,2468 ---- ;; for local variables in the debugger buffer. (defun gud-common-init (command-line massage-args marker-filter &optional find-file) ! (let* ((words (string->strings command-line)) (program (car words)) (dir default-directory) ;; Extract the file name from WORDS