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]

Problem with GDB


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 <stdio.h>

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@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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]