Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-WebMail-UserID: jmhill Date: Sun, 14 Oct 2001 23:38:25 -0400 From: "Jonathan M. Hill" To: cygwin AT cygwin DOT com X-EXP32-SerialNo: 00002406 Subject: Hit a problem with GDB and Cygwin Message-ID: <3BB07E5B@webmail.hartford.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Mailer: WebMail (Hydra) SMTP v3.61.08 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 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 AT mail DOT hartford DOT 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/