help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to start the intel debugger with dgb in emacs


From: Nick Roberts
Subject: Re: how to start the intel debugger with dgb in emacs
Date: Sat, 7 Jul 2007 10:44:58 +1200

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]