From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Dave Arnold" To: "Jim Ingham" , Subject: Re: Does Insight Actually work or is it just an alpha orpre-alpha? Date: Wed, 05 Jul 2000 18:07:00 -0000 Message-id: <01de01bfe6e7$c9d55b20$64251004@homepc.freedsl.com> X-SW-Source: 2000-q3/msg00014.html Content-type: multipart/mixed; boundary="----------=_1583534619-30622-4" This is a multi-part message in MIME format... ------------=_1583534619-30622-4 Content-length: 5406 hi Jim, 1. I did use "-g" option for gcc. 2. Version information: BASH.EXE-2.04$ bash --version GNU bash, version 2.04.0(1)-release (i586-pc-cygwin) Copyright 1999 Free Software Foundation, Inc. BASH.EXE-2.04$ gcc -v Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.2/specs gcc version 2.95.2 19991024 (release-2) BASH.EXE-2.04$ gdb -v GNU gdb 5.0 Copyright 2000 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". BASH.EXE-2.04$ 3. Other worse problems occur using gdb -nw like hanging bash window, can't find libccrt0.c, can't find source, etc. BASH.EXE-2.04$ gdb -nw load GNU gdb 5.0 Copyright 2000 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 1 /cygnus/netrel/src/cygwin-1.1.2/winsup/cygwin/libccrt0.cc: No such file or directory. (gdb) (gdb) list load5.c:1 No source file named load5.c. (gdb) list load5.c:main No source file named load5.c. (gdb) list 1 in /cygnus/netrel/src/cygwin-1.1.2/winsup/cygwin/libccrt0.cc (gdb) THANKS FOR TAKING THE TIME TO HELP, /Dave -----Original Message----- From: Jim Ingham To: Dave Arnold ; insight@sourceware.cygnus.com Date: Wednesday, July 05, 2000 11:18 AM Subject: Re: Does Insight Actually work or is it just an alpha orpre-alpha? >Also sprach Dave Arnold: > >I have not tried Insight on Win95, only on NT, but some of Cygnus's >customers use it on 95, and it does seem to work. Couple of questions for >you come to mind: > >1) How did you compile the code that you are trying to debug (presumably >gcc, but looks like not "-g"?) > >2) What version of Cygwin are you using? > >3) If you run "gdb -nw" do you get the same problems (does "list" show you >sources, do breakpoints work, etc...) > >Jim > >> has anyone actually been able to use Insight to do debugging? >> >> I have downloaded the latest and greatest pre-built version for windows95 >> and haven't been able to use it at all. Nice GUI but useless because >> >> 1. Breakpoints don't work >> 2. Can't load .exe's for debugging >> 3. Show's all source in Assembly. >> 4. Execution stops with error 193: >> 5. Single stepping doesn't work >> >> Let me elaborate: >> >> 1. Breakpoints don't work: >> >> run gdb from a bash prompt with executable name as argument: BASH.EXE-2.04$ >> gdb foo >> ...Insight gui pops up showing source code foo.c ... set a break point in >> main at the first >> instruction,...click run, then nothing happens, execution doesn't stop at >> the breakpoint, >> focus moves to last line of main() being highlighted and the red breakpoint >> marker there being >> on. >> >> 2. Can't load .exe's for debugging: >> ...run gdb like so: BASH.EXE-2.04$ gdb >> ...gui pops up...from file menu choose Open...browse to and choose an >> executable to debug... >> source is all displayed in assembly, cannot switch view to 'source' the file >> list at bottom >> of the window has bunch of files not associated with your program >> like...libccrt0.cc, mount.h, _ansi.h... >> and so on. Execution will stop at a breakpoint, but when trying to single >> step, program seems to >> run to completion and doesn't stop at the next instruction. >> >> 3. Source code in Assembly: >> ...when loading .exe's from commandline like so: gdb foo source code is >> shown C but when loading >> from file->open menu only viewable in assembly. >> >> 4. Execution stops with error 193: >> load an executable into gdb for debugging, >> open the console view >> (gdb) file foo >> (gdb) break main >> Breakpoint 3 at 0x2704: file foo.c, line 50. >> (gdb) r >> Starting program: /lab5/foo model1 >> Error: Error creating process /lab5/foo , (error 193) >> >> >> 5. Single stepping doesn't work: >> >> ...Same as above, can't step into a program. Have to set a breakpoint first >> I assume and then >> run...but I think this is just the way gdb works right? In order to step you >> have to first 'run' the program. >> but would be nice if you could step into a program without having to set any >> breakpoints. >> Sometimes what happens is the execution breaks in one of the cygwin files >> and Insight window is >> showing source like this: >> >> - 0x40374f : >> - 0x403754 : >> >> >> I would really like to use Insight to do debugging but so far it's useless >> to me besides having a nice >> GUI. Can anyone give me any suggestions to resolve these issues? Initially >> I was very excited to see >> such a great looking front end but that is starting to fade unless I figure >> out how to make this thing work. >> The online help is so minimal, doesn't help much. >> >> /dAVe >> >> >> > >-- >Jim Ingham jingham@apple.com >Apple Computer > ------------=_1583534619-30622-4 Content-Type: text/x-Algol68; charset=us-ascii; name="cygcheck.out" Content-Disposition: inline; filename="cygcheck.out" Content-Transfer-Encoding: base64 Content-Length: 2973 CkN5Z251cyBXaW45NS9OVCBDb25maWd1cmF0aW9uIERpYWdub3N0aWNzCkN1 cnJlbnQgU3lzdGVtIFRpbWU6IFdlZCBKdWwgIDUgMTg6MTE6NTcgMjAwMAoK V2luOTUgVmVyIDQuMCBidWlsZCA2NzMwNjY4NCAgQgoKUGF0aDoJL3Vzci9i aW4KCS9VU1IvTE9DQUwvQklOCgkvZS9HQ0MvREpERVYyMDMvQklOCgkvZy9U VVJCT0MvQklOCgkuCgkvY3lnZHJpdmUvYy9XSU5ET1dTCgkvY3lnZHJpdmUv Yy9XSU5ET1dTL0NPTU1BTkQKCS9jeWdkcml2ZS9jL0RPUwoJL2UvR0NDL0VE SVRPUlMvVklNLTUuMwoJL3Vzci9iaW4KCS4KCS9lL0dDQy9VTklYVVRJTC9V TlhVVElMUy9VU1IvV0JJTgoKU3lzRGlyOiBDOlxXSU5ET1dTXFNZU1RFTQpX aW5EaXI6IEM6XFdJTkRPV1MKCkhPTUUgPSBgLycKTUFLRV9NT0RFID0gYHVu aXgnClBXRCA9IGAvJwoKVXNlIGAtcicgdG8gc2NhbiByZWdpc3RyeQoKYTog IGZkICAgICAgICAgICBOL0EgICAgTi9BICAgICAgICAgICAgICAgICAgICAK YzogIGhkICBGQVQg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