9 Feb 2008 20:21
I don't understand why this doesn't work
Ray Hurst <rhurst2 <at> cox.net>
2008-02-09 19:21:34 GMT
2008-02-09 19:21:34 GMT
I'm running under Windows XP and Cygwin. I ran GDB on a simple C program and captured the output (below). I have a few questions: Why can I run the program several times with no errors but as soon as I set a breakpoint at main it gets a SIGSEGV fault? Why does the backtrace show only addresses? C:\Documents and Settings\Ray Hurst\workspace\CDT\HelloWorld-ANSIC\Debug>gdb Hel loWorld-ANSIC.exe GNU gdb 6.5.50.20060706-cvs (cygwin-special) Copyright (C) 2006 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) list 5 Version : 6 Copyright : Your copyright notice 7 Description : Hello World in C, Ansi-style 8 ======================================================================= ===== 9 */ 10(Continue reading)
6. See
RSS Feed