Debug and control registers in kdb.

stas.ibragimov at gmail.com stas.ibragimov at gmail.com
Wed May 2 15:33:28 UTC 2007


The 'hwatch' interface can set breakepoint only to reading and writing, but not to execution.
Reading from cr3 can be used to display page tables. 
On Wed May 02, 2007 at 11:02:56AM -0400, John Baldwin wrote:
> On Tuesday 01 May 2007 06:17:48 pm stas.ibragimov at gmail.com wrote:
> > Hello everybody.
> > In ddb(4) we can read/write only cs-ss,eax-edx,esp,ebp,esi,edi,eip and efl 
> registers of CPU?
> > Why not implemented reding/writing to the dr0-dr7 and cr0-cr4 registers? 
> > In attach there are small patch, that implements it. 
> 
> DDB already provides a 'hwatch' interface to work with the debug registers 
> that is much easier to use than accessing drX directly.  That said, it 
> doesn't appear that your patch does anything for drX.  While it might be 
> slightly useful to read crX in DDB, I'm not sure how writing to them can 
> really be useful.
> 
> -- 
> John Baldwin


More information about the freebsd-hackers mailing list