Coded breakpoints

P. Christeas p_christ at hol.gr
Wed Jul 24 16:40:57 CDT 2002


> Never mind, if WAS a stupid question :-)
> For who needs it too, just add
>
> __asm__("int $0x03\n\t") ;
>
> at the required point, maybe inside an huge if(....)
>
> Regards
>
> Max

Just one objection:
it is bad programming style to use assembly inside C. There are so many C 
functions and macro definitions, that wrap almost any processor instruction 
(I recently came accross the 3Dnow fn's). They are much better, because they 
will refuse to compile if sth goes wrong.
Say:
#define DBG_BREAK  { MY_WARN("I'm brreaking here..."); \
	__asm__("int $0x03\n\t"); }

end later use:
	DBG_BREAK
whenever you want. In addition you 'll be able to
#define DBG_BREAK { /* these brackets won't break conditionals */  }
to disable the breakpoint feature..



More information about the wine-devel mailing list