GDB does not step into or over "sleep" function

Jim Blandy jimb@zwingli.cygnus.com
Tue Dec 5 14:27:00 GMT 2000


> 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.



More information about the Gdb mailing list