This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

Re: GDB does not step into or over "sleep" function



> You are correct. The breakpoint in  "...some more code ..." is never
> reached. We are suspecting
> at the moment that it is a problem with the ProcessSleep function since the
> hang occurrs when we
> 'step into' or 'step over' it. What we don't know is whether it is a
> problem with our underlying kernel
> functions or whether GDB has a problem with a "sleep" function which
> allocates a semaphore,
> blocks on it subject to a user specified timeout and then returns the
> semaphore. We are leaning
> to suspecting that it is a problem with our custom kernel (i.e. GDB is
> innocent). However I thought
> I would ask the GDB group, with all the combined experience developing GDB,
> just in case they
> saw something obvious.

Yes, this sounds like a bug in the OS.  Or perhaps your GDB stub is
interfering with some interrupt handling needed to implement
ProcessSleep.


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