Perhaps we are talking about different things. I will agree that there
is no protection against putting a breakpoint in some code that is part
of the debugger. That was certainly not what I was talking about.
You might be able to perform some protections at the breakpoint set time
or request to single step, but that is much more complex than is worth
it for the time being. The recursion check guards against basic
stupidity or accidental stepping out of a frame you didn't mean to.
Also there are a lot of non-obvious code paths that can get executed via
kgdb such as the fault handlers. The simple recursion check covers
enough cases that you don't want to live without it.
If you want to improve it please provide some patches or further
elaborate on what needs to be fixed.
Jason
--