i386 debugging registers

Eli Zaretskii eliz@delorie.com
Mon Jun 12 05:46:00 GMT 2000


> Date: Sun, 11 Jun 2000 23:32:28 +0000
> From: Fernando Nasser <fnasser@cygnus.com>
> 
> I can see one situation where one may want to look at or set
> debugger registers: when debugging a debugger's hardware breakpoint
> support.

Yes, definitely.  I found myself doing that a lot when I enhanced the
hardware watchpoint/breakpoint support in go32-nat.c (you will see in
the sources an #ifdef'ed away fragment which, if $GDB_SHOW_DR is set
in the environment, causes go32-nat.c to print current values of debug
registers).

> We can add a maintenance command to access that.  That is what maintenance 
> commands are for.

I agree: a maint command that prints the debug registers would be very
useful.


More information about the Gdb mailing list