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: Mirko
Subject: Re: how to start the intel debugger with dgb in emacs
Date: Mon, 09 Jul 2007 07:29:05 -0700
User-agent: G2/1.0

On Jul 6, 6:44 pm, Nick Roberts <nick...@snap.net.nz> wrote:
> 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

Nick,

I applied your patch, but my emacs complained about undefined variable
string->strings.

I am using Emacs 22.1.1

Thanks to Eli's suggestion, I am not in dire straights.  But I will
not mind testing further modifications, if you have time to supply
them.

Mirko



reply via email to

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