Quoting jiang jason ([EMAIL PROTECTED]):
> Hi, I am new to DirectFB.  I installed DirectFB 0.9.19 and DFBPoint 0.7.2. 
> It runs well.  I want to write something based on DirectFB my own, I am not 
> sure how to debug.  Can I use Kdbg?

The safest way of debugging is to login from another machine (e.g. a notebook).
You can use gdb or kdbg (running an Xserver on the second machine, of course).

Using a single machine works, too, but has some limitations.

If you are debugging a slave running in the same DirectFB session
as the master, you should be aware of deadlocks that might occur.
These are caused if the debugged program is stopped while it's holding
a global lock. You cannot continue the program then and the whole session
is locked until you kill the program remotely (or via "sleep; kill" started
before). But you can avoid these deadlocks by running the slave in another
session as the debugger. Do this by starting another master, switch back,
start your program as a slave specifying the second session.

Debugging a master is complicated and requires the Magic SysRq (see README).
If the program crashes or hangs, press SysRq-R to unraw the keyboard and
switch to the debugger. Make sure you are running the master with
"no-graphics-vt" and "no-vt-switching", otherwise you won't be able to switch
to the debugger until you do SysRq-K which makes the debugger useless.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to