This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: Debug of Test 15 (cgf input needed)
Hi,
On Sat, Apr 07, 2001 at 10:36:59PM -0400, Pierre A. Humblet wrote:
> Chris, what you write makes perfect sense and I had tried it.
> Here are more details.
> I can see there are two threads, but bt and where tell me
> "Cannot access memory at address 0x7cee8008" for both threads.
> The only thing I can deduce by looking at the pc and the dll's
> is that the program is in kernel32.
>
> I also wrote a very simple program and repeated the procedure.
> There attach doesn't hang, but I have the same memory
> access problem. At any rate I don't have an unstripped version
> of the cygwin dll to debug cygwin.
> I was simply hoping to confirm
> that the program is in select.
You do need to get the sources and compile them with -g and with optimizer -O
turned off. Edit the makefile to disable all strip commands. Then you can locate
the select() function in gdb.
Sometimes sources are not easy to get. Chris, is there a turf issue?
EW
>
> Pierre
> >If you are debugging cygwin, you'll need to have an unstripped version
> >of the DLL built with gcc -g.
> >
> >Hopefully this makes some sense. I don't think I want to give a course
> >in basic debugging. If this doesn't make sense then I assume that there
> >must be some information on the web somewhere on how to use gdb in
> >addition to the gdb info files.
> >
> >cgf
> >
>