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: Sat, 3 Nov 2001 19:40:24 -0500 From: "Jonathan M. Hill" To: cygwin AT cygwin DOT com X-EXP32-SerialNo: 00002406 Subject: Problem with GDB Message-ID: <3BDF2A5C@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; I'm stuck and in looking at the old mail I see that some have GDB running, some others don't. I don't. -- This is an install of Cygwin on a new Windows 2000 machine -- I do not have MSVC or Borland tools on this machine -- The machine has one hard-drive partitioned as a single logical drive / this is a single OS system -- I don't believe that the path has any DOS-ish details. The cygwin documentation I looked at says there is some support for spaces in the path. $ echo $PATH /usr/local/bin:/usr/bin:/bin:/cygdrive/c/WINNT/system32:/cygdrive/c/WINNT:/cyg drive/c/WINNT/System32/Wbem:/cygdrive/c/Program Files/Common Files/Adaptec Shared/System:/cygdrive/c/bin:/cygdrive/c/Xilinx/bin/nt:. -- I used setup to get the latest binary for GDB. Previously I was getting an unknown error. This time I'm getting a segmentation violation. -- Here is the example $ less hello.c /* * Just the traditional Hello World! program */ #include int main() { printf("Hello World!\n"); return 0; } -- The program runs correctly. Here is how I build it $ gcc -g hello.c -o hello.exe -- I'm starting GDB without insight. $ gdb -nw hello.exe GNU gdb 5.0 (20010428-3) 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) run Starting program: /home/Administrator/code/hello.exe Program received signal SIGSEGV, Segmentation fault. 0x77d8b5dd in _libkernel32_a_iname () (gdb) I'm stuck. I'll continue looking but if you know of some detail, I'd appreciate a pointer. 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/