unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Mirko <mvukovic@nycap.rr.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how to start the intel debugger with dgb in emacs
Date: Sat, 7 Jul 2007 10:44:58 +1200	[thread overview]
Message-ID: <18062.50666.412514.855597@kahikatea.snap.net.nz> (raw)
In-Reply-To: <1183730000.715731.44240@n2g2000hse.googlegroups.com>

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

  parent reply	other threads:[~2007-07-06 22:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-06 13:53 how to start the intel debugger with dgb in emacs Mirko
2007-07-06 15:57 ` Eli Zaretskii
     [not found] ` <mailman.3140.1183737476.32220.help-gnu-emacs@gnu.org>
2007-07-06 17:27   ` Mirko
2007-07-06 22:44 ` Nick Roberts [this message]
2007-07-07 10:12   ` Eli Zaretskii
2007-07-07 23:45     ` Nick Roberts
     [not found] ` <mailman.3151.1183761918.32220.help-gnu-emacs@gnu.org>
2007-07-09 14:29   ` Mirko
2007-07-09 14:45     ` Eli Zaretskii
     [not found]     ` <mailman.3221.1183992395.32220.help-gnu-emacs@gnu.org>
2007-07-09 18:26       ` Mirko

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18062.50666.412514.855597@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=help-gnu-emacs@gnu.org \
    --cc=mvukovic@nycap.rr.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).