* i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
DBREG_DRX macro to acces debug registers.
This commit is contained in:
parent
ca02e098c5
commit
afdb036ab6
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
2002-10-20 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
|
||||
DBREG_DRX macro to acces debug registers.
|
||||
|
||||
* Makefile.in (i386obsd-tdep.o): New target.
|
||||
|
||||
* solib-sunos.c: Include "bcache.h" and "regcache.h".
|
||||
|
|
|
@ -306,7 +306,7 @@ i386bsd_dr_set (int regnum, unsigned int value)
|
|||
/* For some mysterious reason, some of the reserved bits in the
|
||||
debug control register get set. Mask these off, otherwise the
|
||||
ptrace call below will fail. */
|
||||
dbregs.dr7 &= ~(0x0000fc00);
|
||||
DBREG_DRX ((&dbregs), 7) &= ~(0x0000fc00);
|
||||
|
||||
DBREG_DRX ((&dbregs), regnum) = value;
|
||||
|
||||
|
@ -355,7 +355,7 @@ i386bsd_dr_get_status (void)
|
|||
return 0;
|
||||
#endif
|
||||
|
||||
return dbregs.dr6;
|
||||
return DBREG_DRX ((&dbregs), 6);
|
||||
}
|
||||
|
||||
#endif /* PT_GETDBREGS */
|
||||
|
|
Loading…
Reference in a new issue