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]
Other format: [Raw text]

Question: Gdb, Emacs and Cygwin mount


Hi,

	I think this is a problem of emacs and cygwin mount mismatch. I wish
someone can share some thought on it. Thanks.

	1. I have a cygwin-mount root directory (/) as follows

		c:\cygwin	/	type system (binmode)   ; mount -b
-s c:\\cygwin /

	2. Under the directory /home/foo (i.e. c:\cygwin\home\foo), I have
hello.c and hello.exe

	3. I launched the gdb though emacs, as follows

		cd /home/foo
		M-x gdb
		file hello
		b main
		run

	4. So far everything seems fine (thanks)

	5. The problem:

		When the execution stopped at the breakpoint 'main', gdb
brought up a empty source buffer 'hello.c'. When I M-x pwd from this empty
source buffer, IT IS c:/home/foo. Please note that there is a drive
designator, c:, prefixing the posix path /home/foo.

	6. If I remount c:\cygwin to /cygwin, the problematic path will
become c:/cygwin/home/foo, and the source buffer 'hello.c' is OK.

	So what is the problem? Thanks for any suggestion.

Best Regards,

Xiangmin



--
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]