gdb remote kernel debugging on i386's broken?

Bruce Evans bde at zeta.org.au
Sun Mar 21 17:09:05 PST 2004


Has anyone found gdb remote kernel debugging on i386's to _not_ be
broken lately?  There have been rumours of its brokenness for several
months.  I rarely use it, but tried it yesterday and found that
breakpoints just don't work.  gdb apparently doesn't understand its
own breakpoints.  It stops on them, and IIRC it removes the breakpoint
instruction that it has put in the instruction stream, but doesn't
fix up %eip to where the original instruction was, so it normally
wants to resume execution in the middle of a multi-byte instruction.
This tends to crash.  Fixing up %eip manually works.  Single stepping
works.

Bruce


More information about the freebsd-current mailing list