This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: win32 error 6
- From: Ed Randall <ed_randall at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 21 Feb 2006 12:06:45 +0000 (UTC)
- Subject: Re: win32 error 6
- References: <5.1.0.14.2.20050226182934.00c20f70@mail.hiwaay.net>
I had a similar thing trying to debug jikes.exe using gdb on cygwin.
Jikes would run normally on its own, but a SEGV occurred before "main" when
running it inside gdb. My workaround was to make jikes.exe pause at the start
of "main" by adding a call to "getline();" as the first line of the program,
then in another window get the process ID of my jikes.exe process using
$ ps -ef | grep jikes
Ed.Randa 4036 692 2 10:26:35 /cygdrive/c/jikes-1.22/src/jikes
then start gdb in another window, telling it to attach to the already-running
process id, ie
$ gdb
...
(gdb) attach 4036
Attaching to process 204
Reading symbols from /cygdrive/c/wss/java/jikes/jikes-1.22/src/jikes.exe...done.
[Switching to thread 204.0xa14]
(gdb) cont
Continuing.
Finally, go back to my jikes.exe window, hit <return> and the program under test
will run on under control of the debugger.
Regards
Ed
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/