[PATCH, RFC]: Change order of setting i386 debug registers

Eli Zaretskii eliz@delorie.com
Sat Mar 31 08:23:00 GMT 2001


> Date: Sat, 31 Mar 2001 17:56:02 +0200
> From: Mark Kettenis <kettenis@wins.uva.nl>
> 
> FreeBSD/i386 does some strict checking on the debug registers before
> setting them.  This conflicts a bit with the order in which the code
> in i386-nat.c tries to set the registers.  The attached patch fixes
> these problems by changing the order in which we modify the
> registers.  Instead of enabling an address register before storing the
> proper address in it, after the patch, we will first store the address
> and then enable the address register.  This seems more correct to me.

You are right; it was my mistake not to do it that way in the first
place.

> Any objections to checking this in?

Please do.



More information about the Gdb-patches mailing list