- case 0:
- dr_regs.uds.ds32.__dr0 = value;
- break;
- case 1:
- dr_regs.uds.ds32.__dr1 = value;
- break;
- case 2:
- dr_regs.uds.ds32.__dr2 = value;
- break;
- case 3:
- dr_regs.uds.ds32.__dr3 = value;
- break;
- case 4:
- dr_regs.uds.ds32.__dr4 = value;
- break;
- case 5:
- dr_regs.uds.ds32.__dr5 = value;
- break;
- case 6:
- dr_regs.uds.ds32.__dr6 = value;
- break;
- case 7:
- dr_regs.uds.ds32.__dr7 = value;
- break;
+ case x86_DEBUG_STATE32:
+ switch (regnum)
+ {
+ case 0:
+ dr_regs.uds.ds32.__dr0 = value;
+ break;
+ case 1:
+ dr_regs.uds.ds32.__dr1 = value;
+ break;
+ case 2:
+ dr_regs.uds.ds32.__dr2 = value;
+ break;
+ case 3:
+ dr_regs.uds.ds32.__dr3 = value;
+ break;
+ case 4:
+ dr_regs.uds.ds32.__dr4 = value;
+ break;
+ case 5:
+ dr_regs.uds.ds32.__dr5 = value;
+ break;
+ case 6:
+ dr_regs.uds.ds32.__dr6 = value;
+ break;
+ case 7:
+ dr_regs.uds.ds32.__dr7 = value;
+ break;
+ }
+ break;
+#ifdef BFD64
+ case x86_DEBUG_STATE64:
+ switch (regnum)
+ {
+ case 0:
+ dr_regs.uds.ds64.__dr0 = value;
+ break;
+ case 1:
+ dr_regs.uds.ds64.__dr1 = value;
+ break;
+ case 2:
+ dr_regs.uds.ds64.__dr2 = value;
+ break;
+ case 3:
+ dr_regs.uds.ds64.__dr3 = value;
+ break;
+ case 4:
+ dr_regs.uds.ds64.__dr4 = value;
+ break;
+ case 5:
+ dr_regs.uds.ds64.__dr5 = value;
+ break;
+ case 6:
+ dr_regs.uds.ds64.__dr6 = value;
+ break;
+ case 7:
+ dr_regs.uds.ds64.__dr7 = value;
+ break;
+ }
+ break;
+#endif