Date: Mon, 22 Mar 2004 12:08:58 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: current@freebsd.org Subject: gdb remote kernel debugging on i386's broken? Message-ID: <20040322115952.O11632@gamplex.bde.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040322115952.O11632>