>Anybody here ever used GDB to manipulate
>the Pentium's Debug registers under Linux
>(or anywhere else)? I'd like to be able to
>set breakpoints triggered by various kinds of
>accesses to memory but after a quick overview
>it looks like GDB support for this is a bit thin.
Basic GDB support for HW watchpoints while debugging
"normal" programs seems to work; at least the
version I have (2002-04-01-cvs) did during the simple
test-drive I gave it.
Meanwhile, it looks like http://kgdb.sourceforge.net/
have taken over from SGI as the maintainers of KGDB -
they offer patches that enable you to inflict KGDB on
various kernels right on up to 2.4.18 - not bad.
Currently, it looks like GDB does not officially
support the Debug registers when working via a
remote-agent like KGDB, but you can still use them -
part of what you get from the KGDB folks are some
macros that hand-assemble KGDB packets on the fly
using the "maintenance packet" command - yikes!
I'm not sure sure GDB knows exactly what's hit it when
it gets an exception from one of the Debug registers,
but it seems to do the right thing nevertheless...
*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************