497bc5034406194a037e977dc0696266b698de1d
3 Copyright (c) 1998-2001 Klaus P. Gerlicher
25 This file may be distributed under the terms of the GNU Public License.
29 ////////////////////////////////////////////////////
36 extern void NewInt31Handler(void);
38 void DeInstallTraceHook(void);
40 volatile ULONG OldInt1Handler
=0;
47 jz exceptionnotsinglestep
50 pushl $" STR(REASON_SINGLESTEP
) "
53 exceptionnotsinglestep:
55 pushl $" STR(REASON_HARDWARE_BP
) "
59 BOOLEAN
InstallTraceHook(void)
61 ULONG LocalInt1Handler
;
63 DPRINT((0,"InstallTraceHook(OldInt1Handler=%0.8x)...\n",OldInt1Handler
));
68 __asm__("mov $NewInt1Handler,%0"
69 :"=r" (LocalInt1Handler
)
72 OldInt1Handler
=SetGlobalInt(0x01,(ULONG
)LocalInt1Handler
);
78 void DeInstallTraceHook(void)
80 DPRINT((0,"DeInstallTraceHook(OldInt1Handler=%0.8x)...\n",OldInt1Handler
));
85 SetGlobalInt(0x01,(ULONG
)OldInt1Handler
);