* Problem with GDB
@ 2001-11-03 16:39 Jonathan M. Hill
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan M. Hill @ 2001-11-03 16:39 UTC (permalink / raw)
To: cygwin
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Problem with GDB
@ 2001-11-09 12:42 Jonathan M. Hill
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan M. Hill @ 2001-11-09 12:42 UTC (permalink / raw)
To: cygwin
Hello;
I think that problem with GDB is fixed now. Last night I ran
setup.exe to update the binaries and noticed several files were updated.
With the updates, GDB runs now.
Jonathan Hill
$ gcc -g hello.c -o hello.exe
$ 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: /..snip../hello.ex
Hello World!
Program exited normally.
(gdb) quit
$
--
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-09 12:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-03 16:39 Problem with GDB Jonathan M. Hill
2001-11-09 12:42 Jonathan M. Hill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).