unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* GUD mode bug
@ 2007-06-27 11:46 Joonhwan Lee
  2007-06-28  1:44 ` Nick Roberts
  0 siblings, 1 reply; 6+ messages in thread
From: Joonhwan Lee @ 2007-06-27 11:46 UTC (permalink / raw)
  To: bug-gnu-emacs


[-- Attachment #1.1: Type: text/plain, Size: 1280 bytes --]

Dear,

M-x dbx
dbx -c "runargs -simu; run" path-to-the-debuggee

Above workflow doesn't work on Emacs 22.1.1

I found something in gud.el, look at this.

;; Perform initializations common to all debuggers.
;; The first arg is the specified command line,
;; which starts with the program to debug.
;; The other three args specify the values to use
;; 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
     ;; and put t in its place.
     ;; Later on we will put the modified file name arg back there.
     (file-word (let ((w (cdr words)))
              (while (and w (= ?- (aref (car w) 0)))
            (setq w (cdr w)))
.
.
.

>From above,  variable "command-line" is converted into list. But Just
"Split-String" by default separator.

In the end, because the quote in my original dbx execution, output list by
split-string was

("-c" "\"runargs" "-simu;" "run\"" "path-to-the-debuggee)

instead of

("-c" "runargs -simu; run" "path-to-the-debuggee")

which is actually correct for (start-process) to be called with


Thanks Emacs Team

[-- Attachment #1.2: Type: text/html, Size: 1853 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-06-28 21:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-27 11:46 GUD mode bug Joonhwan Lee
2007-06-28  1:44 ` Nick Roberts
     [not found]   ` <1c82e0ef0706272055l21eb531bmf3bea9a331b3fb7a@mail.gmail.com>
2007-06-28  3:57     ` Joonhwan Lee
2007-06-28  8:43       ` Nick Roberts
2007-06-28 19:25         ` Richard Stallman
2007-06-28 21:01           ` Nick Roberts

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).