CVSROOT: /cvs/directfb
Module name: DirectFB
Changes by: dok 20041120 21:40:53
Modified files:
lib/direct : debug.c trace.c trace.h
Log message:
Added TraceFlags to each frame, featuring TF_DEBUG which indicates that
the function of the current frame wrote at least one debug message.
Added "direct_trace_debug_indent()" which sets the flag TF_DEBUG for the
current frame and returns the current debug message indention level by
examining the stack, counting any upper frames that produced debug output.
Increased maximum trace depth to 256.
Here is an example:
(-) [SDL Input 18.814] (18246) Fusion/Reactor: fusion_reactor_dispatch(
0x20007ee0 [1], msg_data 0xbf5ffa54, self true, globals 0x400a1720)
(-) [SDL Input 18.815] (18246) Fusion/Reactor: fusion_reactor_dispatch(
0x20007c00 [17], msg_data 0xbf5ff814, self true, globals 0x4009f7d4)
(-) [SDL Input 18.815] (18246) IDirectFBWindow:
IDirectFBWindow_React()
(-) [ NO NAME 18.815] (18239) Core/Windows: dfb_window_resize
(0x2013db00) [ -2, 27 - 616x 460 -> 99x40]
(-) [ NO NAME 18.815] (18239) WM/Default: resize_window( 99, 40 )
(-) [ NO NAME 18.815] (18239) Fusion/Reactor:
fusion_reactor_dispatch( 0x20007000 [0], msg_data 0x400c872c, self false,
globals (nil))
(-) [ NO NAME 18.815] (18239) Fusion/Reactor:
fusion_reactor_dispatch( 0x20007be0 [18], msg_data 0xbffff500, self true,
globals 0x400a1880)
(-) [ NO NAME 18.834] (18239) Fusion/Reactor:
fusion_reactor_dispatch( 0x20007c00 [17], msg_data 0xbffff5e0, self true,
globals 0x4009f7d4)
(-) [ NO NAME 18.834] (18239) IDirectFBWindow:
IDirectFBWindow_React()