* Can't debug perl and c at the same time? @ 2007-12-13 5:04 Ye Wenbin 2007-12-13 5:45 ` Nick Roberts 0 siblings, 1 reply; 2+ messages in thread From: Ye Wenbin @ 2007-12-13 5:04 UTC (permalink / raw) To: emacs-devel Hi, I found that I can't debug using two interface of GUD at the same time, because gud-def redefine commands every time when debug starts. Although it rarely happens, but why gud didn't implement this feature? -- Best Regards, Ye Wenbin ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Can't debug perl and c at the same time? 2007-12-13 5:04 Can't debug perl and c at the same time? Ye Wenbin @ 2007-12-13 5:45 ` Nick Roberts 0 siblings, 0 replies; 2+ messages in thread From: Nick Roberts @ 2007-12-13 5:45 UTC (permalink / raw) To: Ye Wenbin; +Cc: emacs-devel > I found that I can't debug using two interface of GUD at the same time, > because gud-def redefine commands every time when debug starts. Yes. Stefan Monnier has proposed a solution in http://lists.gnu.org/archive/html/emacs-devel/2006-02/msg00052.html: ... I think a good first step would be to kill gud-def. Instead of gud sub-modes using (gud-def gud-break "break %f:%l" "\C-b" "Set breakpoint at current line.") in their main function, we could have a top-level (for example) (define-gud-cmd gud-break "\C-b" "Set breakpoint at current line.") and then the gud sub-mode would only do something like (set (make-local-variable 'gud-break-cmd) "break %f:%l") ... > Although it rarely happens, but why gud didn't implement this feature? I guess because, as you say, it's not normally a problem, and because no-one has volunteered to do it. Would you like to submit a patch (for the trunk)? -- Nick http://www.inet.net.nz/~nickrob ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-13 5:45 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-12-13 5:04 Can't debug perl and c at the same time? Ye Wenbin 2007-12-13 5:45 ` 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).