* gdb and Windows 2000
@ 2001-10-26 18:09 Jean-Marc Eurin
0 siblings, 0 replies; 8+ messages in thread
From: Jean-Marc Eurin @ 2001-10-26 18:09 UTC (permalink / raw)
To: cygwin
Hello,
I would like to continue the discussion in the thread
at
http://sources.redhat.com/ml/cygwin/2001-09/msg00170.html
I have exactly the same problem:
je734613:jme/tmp> cat test.c
main() {
printf ("hello\n");
}
je734613:jme/tmp>gcc -g -o test test.c
je734613:jme/tmp> gdb -nw ./test
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) r
Starting program: /home/jmeurin/tmp/jme.exe
Program received signal SIGSEGV, Segmentation fault.
0x77d8b3ee in _libkernel32_a_iname ()
(gdb) bt
#0 0x77d8b3ee in _libkernel32_a_iname ()
#1 0x751520c6 in _libkernel32_a_iname ()
#2 0x77d8baec in _libkernel32_a_iname ()
#3 0x77d8b77a in _libkernel32_a_iname ()
#4 0x77d8bcd6 in _libkernel32_a_iname ()
#5 0x77d8bc71 in _libkernel32_a_iname ()
#6 0x77d8b789 in _libkernel32_a_iname ()
#7 0x77da8714 in _libkernel32_a_iname ()
#8 0x75153044 in _libkernel32_a_iname ()
#9 0x751aa4b2 in _libkernel32_a_iname ()
#10 0x751aa595 in _libkernel32_a_iname ()
#11 0x751a8a36 in _libkernel32_a_iname ()
#12 0x61067cec in _libkernel32_a_iname ()
#13 0x61068256 in _libkernel32_a_iname ()
#14 0x61003d4f in _libkernel32_a_iname ()
#15 0x6100421d in _libkernel32_a_iname ()
#16 0x6100425c in _libkernel32_a_iname ()
#17 0x0040124f in cygwin_crt0 ()
at
/cygnus/netrel/src/cygwin-1.3.3-2/winsup/cygwin/lib/cygwin_crt0.c:33
(gdb)
I have the latest packages installed. The cygcheck -s
shows:
Cygnus Win95/NT Configuration Diagnostics
Current System Time: Fri Oct 26 18:07:25 2001
WinNT Ver 5.0 build 2195 Service Pack 2
Path: .
/home/jmeurin/bin/cygwin
/home/jmeurin/bin/scripts
/usr/local/bin
/usr/local/bin/i686-pc-cygwin
/usr/bin
/bin
/c/WINNT/system32
/c/WINNT
/c/WINNT/System32/Wbem
SysDir: C:\WINNT\System32
WinDir: C:\WINNT
PWD = `/home/jmeurin/tmp'
USER = `jmeurin'
MAKE_MODE = `unix'
HOME = `/home/jmeurin'
Use `-r' to scan registry
c: hd NTFS 19055Mb 23% CP CS UN PA FC
E-Client
cygcheck: dump_sysinfo: GetVolumeInformation() failed:
1
d: cd N/A N/A
C:\cygwin\bin /usr/bin system binmode
C:\cygwin\lib /usr/lib system binmode
C:\cygwin / system binmode
c: /c user textmode
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe
56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll
45k 2001/04/25 C:\cygwin\bin\cygform5.dll
34k 2001/09/30 C:\cygwin\bin\cygform6.dll
18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll
17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
21k 2001/06/28 C:\cygwin\bin\cyghistory5.dll
21k 2001/06/20 C:\cygwin\bin\cygintl.dll
81k 2001/10/20 C:\cygwin\bin\cygitcl30.dll
35k 2001/10/20 C:\cygwin\bin\cygitk30.dll
119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll
26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
19k 2001/09/30 C:\cygwin\bin\cygmenu6.dll
156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
175k 2001/09/30 C:\cygwin\bin\cygncurses++6.dll
226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
201k 2001/09/30 C:\cygwin\bin\cygncurses6.dll
15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
12k 2001/09/30 C:\cygwin\bin\cygpanel6.dll
163k 2001/05/06 C:\cygwin\bin\cygpng2.dll
108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
135k 2001/06/28 C:\cygwin\bin\cygreadline5.dll
390k 2001/10/20 C:\cygwin\bin\cygtcl80.dll
5k 2001/10/20 C:\cygwin\bin\cygtclpip80.dll
10k 2001/10/20 C:\cygwin\bin\cygtclreg80.dll
245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll
623k 2001/10/20 C:\cygwin\bin\cygtk80.dll
41k 2001/07/04 C:\cygwin\bin\cygXpm-noX4.dll
45k 2001/07/04 C:\cygwin\bin\cygXpm-X4.dll
49k 2001/02/03 C:\cygwin\bin\cygz.dll
701k 2001/09/13 C:\cygwin\bin\cygwin1.dll
Cygwin DLL version info:
dll major: 1003
dll minor: 3
dll epoch: 19
dll bad signal mask: 19005
dll old termios: 5
dll malloc env: 28
api major: 0
api minor: 46
shared data: 3
dll identifier: cygwin1
mount registry: 2
cygnus registry name: Cygnus Solutions
cygwin registry name: Cygwin
program options name: Program Options
cygwin mount registry name: mounts v2
cygdrive flags: cygdrive flags
cygdrive prefix: cygdrive prefix
cygdrive default prefix:
build date: Wed Sep 12 23:54:31 EDT 2001
shared id: cygwin1S3
Use -h to see help about each section
Any ideas?
Thanks for your help,
Jean-Marc
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com
--
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] 8+ messages in thread
* Re: gdb and Windows 2000
@ 2001-09-05 2:23 Mohammad Saleem
0 siblings, 0 replies; 8+ messages in thread
From: Mohammad Saleem @ 2001-09-05 2:23 UTC (permalink / raw)
To: cygwin
Hi all,
I have also a similar problem but on WinNT 4.0.
I have installed the recent version of Cygwin.
I compile the program as follow:
% gcc -g -o test test.c
% gdb test.exe
As a result of this a get a browser window with different icons to
proceed for debugging along with my source code file.
When I press "run" icon, a dos like window apprears and everything
fryses. I have to restart the computer.
Can anybody point me out that what is going wrong?
thanks
/Mohammad
Corinna Vinschen <cygwin@cygwin.com> wrote:
On Tue, Sep 04, 2001 at 10:36:46PM -0700, Michael Ubell wrote:
> Has anyone gotten gdb to work on Windows 2000 (with cygwin, of
course)?
>
> Below is a simple program which runs but not under gdb. I have
downloaded
> and built gdb but cannot debug it either. I can run the version
> of gdb shipped with cygwin, but it has no symbols. See below:
Works for me.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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/
--
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] 8+ messages in thread
* gdb and Windows 2000
@ 2001-09-04 22:36 Michael Ubell
2001-09-05 1:21 ` Corinna Vinschen
0 siblings, 1 reply; 8+ messages in thread
From: Michael Ubell @ 2001-09-04 22:36 UTC (permalink / raw)
To: cygwin
Has anyone gotten gdb to work on Windows 2000 (with cygwin, of course)?
Below is a simple program which runs but not under gdb. I have downloaded
and built gdb but cannot debug it either. I can run the version
of gdb shipped with cygwin, but it has no symbols. See below:
Administrator@VAIO ~/gdb-5.0/gdb
$ uname -a
CYGWIN_NT-5.0 VAIO 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown
Administrator@VAIO ~/db/build_unix
$ cat test.c
main() {
printf ("hello\n");
}
Administrator@VAIO ~/db/build_unix
$ gcc -g -o test.exe test.c
Administrator@VAIO ~/db/build_unix
$ ./test.exe
hello
Administrator@VAIO ~/db/build_unix
$ gdb -nw ./test.exe
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) run
Starting program: /home/Administrator/db/build_unix/./test.exe
gdb: unknown target exception 0xc0000135 at 0x77fb0ff4
Program received signal ?, Unknown signal.
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
Program exited with code 0200.
You can't do that without a process to debug.
(gdb) quit
Administrator@VAIO ~/db/build_unix
$ gdb -nw ~/gdb-5.0/gdb/gdb.exe
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) run
Starting program: /home/Administrator/gdb-5.0/gdb/gdb.exe
gdb: unknown target exception 0xc0000135 at 0x77fb0ff4
Program received signal ?, Unknown signal.
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
Program exited with code 0200.
You can't do that without a process to debug.
(gdb) quit
Administrator@VAIO ~/db/build_unix
$ gdb -nw /usr/bin/gdb
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"...(no debugging symbols found)...
(gdb) run -nw
Starting program: /usr/bin/gdb.exe -nw
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) quit
Program exited normally.
(gdb) quit
Administrator@VAIO ~/db/build_unix
$ gcc -o test.exe test.c
Administrator@VAIO ~/db/build_unix
$ gdb -nw ./test.exe
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) run
Starting program: /home/Administrator/db/build_unix/./test.exe
gdb: unknown target exception 0xc0000135 at 0x77fb0ff4
Program received signal ?, Unknown signal.
Program received signal SIGSEGV, Segmentation fault.
Program received signal SIGSEGV, Segmentation fault.
Program exited with code 0200.
You can't do that without a process to debug.
(gdb)
--
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] 8+ messages in thread
* Re: gdb and Windows 2000
2001-09-04 22:36 Michael Ubell
@ 2001-09-05 1:21 ` Corinna Vinschen
2001-09-05 7:36 ` Michael Ubell
0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2001-09-05 1:21 UTC (permalink / raw)
To: cygwin
On Tue, Sep 04, 2001 at 10:36:46PM -0700, Michael Ubell wrote:
> Has anyone gotten gdb to work on Windows 2000 (with cygwin, of course)?
>
> Below is a simple program which runs but not under gdb. I have downloaded
> and built gdb but cannot debug it either. I can run the version
> of gdb shipped with cygwin, but it has no symbols. See below:
Works for me.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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] 8+ messages in thread
* Re: gdb and Windows 2000
2001-09-05 1:21 ` Corinna Vinschen
@ 2001-09-05 7:36 ` Michael Ubell
2001-09-05 7:47 ` Corinna Vinschen
0 siblings, 1 reply; 8+ messages in thread
From: Michael Ubell @ 2001-09-05 7:36 UTC (permalink / raw)
To: Corinna Vinschen
Corinna Vinschen wrote:
>
> On Tue, Sep 04, 2001 at 10:36:46PM -0700, Michael Ubell wrote:
> > Has anyone gotten gdb to work on Windows 2000 (with cygwin, of course)?
> >
> > Below is a simple program which runs but not under gdb. I have downloaded
> > and built gdb but cannot debug it either. I can run the version
> > of gdb shipped with cygwin, but it has no symbols. See below:
>
> Works for me.
>
> Corinna
Ok, I assume you are running the current downloadable version of cygwin or
are you using a development version? Do you know what might be the
problem on my system? I have tried putting a breakponit at main, but
it never gets there. Any ideas on how to proceed? Cygwin is not very
useful to me unless I can debug the programs I am writing.
Can you show me a script of what you ran? Perhaps I am not compiling with
the right options or something.
Mike
--
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] 8+ messages in thread
* Re: gdb and Windows 2000
2001-09-05 7:36 ` Michael Ubell
@ 2001-09-05 7:47 ` Corinna Vinschen
2001-09-05 10:20 ` Michael Ubell
0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2001-09-05 7:47 UTC (permalink / raw)
To: cygwin
On Wed, Sep 05, 2001 at 07:36:06AM -0700, Michael Ubell wrote:
>
>
> Corinna Vinschen wrote:
> >
> > On Tue, Sep 04, 2001 at 10:36:46PM -0700, Michael Ubell wrote:
> > > Has anyone gotten gdb to work on Windows 2000 (with cygwin, of course)?
> > >
> > > Below is a simple program which runs but not under gdb. I have downloaded
> > > and built gdb but cannot debug it either. I can run the version
> > > of gdb shipped with cygwin, but it has no symbols. See below:
> >
> > Works for me.
> >
> > Corinna
>
>
> Ok, I assume you are running the current downloadable version of cygwin or
> are you using a development version? Do you know what might be the
I'm using the self build version of Cygwin from CVS. Just try the
latest developer snapshots.
> problem on my system? I have tried putting a breakponit at main, but
> it never gets there. Any ideas on how to proceed? Cygwin is not very
I'm not sure. Perhaps somebody else could give an hint here.
> useful to me unless I can debug the programs I am writing.
>
>
> Can you show me a script of what you ran? Perhaps I am not compiling with
> the right options or something.
Naah, I did the same what you've described in your original mail.
Nothing else. Setting a breakpoint in main worked, too.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
--
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] 8+ messages in thread
end of thread, other threads:[~2001-10-26 18:09 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-26 18:09 gdb and Windows 2000 Jean-Marc Eurin
-- strict thread matches above, loose matches on Subject: below --
2001-09-05 2:23 Mohammad Saleem
2001-09-04 22:36 Michael Ubell
2001-09-05 1:21 ` Corinna Vinschen
2001-09-05 7:36 ` Michael Ubell
2001-09-05 7:47 ` Corinna Vinschen
2001-09-05 10:20 ` Michael Ubell
2001-09-05 10:22 ` Christopher Faylor
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).