This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygwin, emacs-20.7, POSE, gdbplug



>>>>> at Tue, 16 Oct 2001 21:11:59 -0700
>>>>> Steve Kelem <s_kelem@pacbell.net> said,> 

> Here emacs opens a file called mine.c, but it's 
> c:/c/Palm/Pmines/pmines/src/mine.c
> instead of c:/Palm/Pmines/pmines/src/mine.c or 
> /c/Palm/Pmines/pmines/src/mine.c
> 
> Does anyone have an idea of how to fix this?

That's a issue on emacs, not cygwin.
How about this?  (add in your ~/.emacs)

(eval-after-load "gud"
  '(defadvice gud-gdb-find-file (before win32 (f) activate)
     "Convert cygwin format file name into standard format."
     (let ((case-fold-search nil))
       (if (string-match "^//?\\([a-z]\\)\\(/.*\\)" f)
	   (setq f (concat (match-string 1 f) ":" (match-string 2 f)))))))

I'm not tested on recent gdb environment.

--- Regards,
 Shun-ichi Goto  <gotoh@taiyo.co.jp>
   R&D Group, TAIYO Corp., Tokyo, JAPAN

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]