;       SCCSID = @(#)bugbits.inc	6.1 90/11/17
;      SCCSID = @(#)bugbits.inc	13.1 88/10/14
;**	OS/2 kernel debugging control
;
;
;	The debug macros are designed so that they can be sectionally
;	and incrementally enabled at run-time.	The following
;	assignments have been made for OS/2 standards:
;
;     Group    Level	   Meaning
;
;	01		System Calls
;		01		Summary
;		02		Details on state flags
;		04		Freeze/Thaw
;		08		Sharer
;		10
;		20		Open/Close/Read/Write calls
;		40		Open/Close/Read/Write details
;		80		TimerService Printouts
;
;	02		Scheduler
;		01		Priority Summary
;		02		Process creation
;		04		Process death
;		08		Sleep Wake
;		10		Detailed sleep/wake
;		20		Detailed enque/deque
;		40		Detailed context switch
;		80		Priority code, sched. ticks
;
;	04		Memory allocation
;		10		Virtual allocation
;		20		Initialization
;		40		Virtual mapping
;
;	08		Shared memory, semaphores & EXEC
;		01		Shared memory system call entry/exit
;		02		Shared memory detailed info.
;		04		Semaphore system call entry/exit
;		08		Semaphore detailed info.
;		10		load info
;		20		behavior bit info
;
;	10		Signals & Interrupts
;		01		Calls and Events summary
;		02		Signal handling details
;		10		Detailed info on vector save/restore
;		20		Ptrace and debugger support
;		40		Critical errors (INT 24H)
;
;	20		Screen Manipulation
;		01		Calls and Events summary
;		02		Screen IOCTLs
;		08		ConsInputFilter actions
;
;	40		IOCTL, Devices and File system
;		01		JFNs and SFs
;		02		Generic IOCTL Printfs
;		04		time/date/clock stuff
;		08		working directory stuff
;		10		disk I/O buffering
;		20		buffer consistency checks
;		40		disk allocation routines
;		80		DEVHLP routines
;
;	80		compatibility hacks
;		01		INT12 support
;		02
;		04		FCB/SFT translation
;		08		PDB manipulations
;		40		Volume ID tricks
;		80		built-in debugger entry

?BUGBIT = 0
IFDEF PMDEBUG
    ?BUGBIT = 1
ENDIF
IFDEF DEBUGPRT
    ?BUGBIT = 1
ENDIF
IF ?BUGBIT
FIRSTCODE	SEGMENT
	DB	"BUGBITS:"		; useful for patching

	PUBLIC	BUGBITS
BUGBITS DB	00H			; group bits
	DB	0FFh,0FFh,0FFh,0FFh	; group 01,02,04,08 level bits
	DB	0FFh,0FFh,0FFh,0FFh	; group 10,20,40,80 level bits
FIRSTCODE	ENDS
ENDIF
