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: Hit a problem with GDB and Cygwin


STFMLA for the exception number,

Rob

> -----Original Message-----
> From: Jonathan M. Hill [mailto:jmhill@mail.hartford.edu]
> Sent: Monday, October 15, 2001 1:38 PM
> To: cygwin@cygwin.com
> Subject: Hit a problem with GDB and Cygwin
> 
> 
> Hello There;
> 
>    I am an instructor in the Electrical Engineering Dept. at the
> University of Hartford.  I'm new here so the department just bought me
> a Windows XP machine from Gateway.  I'm still scratching my head over
> this one, "Why XP?"
> 
>    Well anyways, I have this machine on hand and just installed
> Cygwin, I've done this before on a Windows 95 machine and did not
> notice anything odd during the install.
> 
>    I did just find a problem with GDB however.  I just built the
> traditional "Hello World!" program and find that GDB is 
> having trouble.
> The Hello World program runs correctly under bash however.
> Here is the code:
> 
> 
> $ less hello.c
> /*
>  * Just the traditional Hello World! program
>  */
> #include <stdio.h>
> int main()
> {
>   printf("Hello World!\n");
>   return 0;
> }
> 
> 
> When I bring up GDB, the Insight window appears along with the
> source code, but when I click the "run" button, Insight indicates
> that it received an unknown signal and then locks up.
> 
> I next tried starting GDB without the Insight graphical user interface
> 
> $ gcc -g hello.c -o hello
> $ gdb -nw hello
> GNU gdb 5.0 (20010428-1)
> Copyright 2001 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public 
> License, and you are
> welcome to change it and/or distribute copies of it under 
> certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show 
> warranty" for details.
> This GDB was configured as "i686-pc-cygwin"...
> (gdb) break 1
> Breakpoint 1 at 0x40105a: file hello.c, line 1.
> (gdb) run
> Starting program: /home/Administrator/code/hello.exe
> gdb: unknown target exception 0x000006d1 at 0x77e8f142
> 
> Program received signal ?, Unknown signal.
> 0x77e8f142 in _libkernel32_a_iname ()
> (gdb)
> 
> If there is any additional information that I can provide, please
> send me a note.
>                                                Jonathan Hill
>                                                
jmhill@mail.hartford.edu
> 
> 
> --
> 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/
> 
> 

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