This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: GDB does not step into or over "sleep" function
- To: Denset dot Serralta at radisys dot com
- Subject: Re: GDB does not step into or over "sleep" function
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 05 Dec 2000 17:26:55 -0500
- Cc: Jim Blandy <jimb at cygnus dot com>, gdb at sources dot redhat dot com
- References: <OF9A6588DE.02D8BDD2-ON852569A8.006B6937@radisys.com>
> 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.