[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [alliance] [Fwd: [freedows-chat] Re: <important info> The Project,SourceForge, The Future]



>Still haven't managed to find the bug in shared memory, i've tried
>various demokernels with different ordering of the tasks and the CK just
>seems to crash for no reason whatsoever on the current order - don't
>even get the debugger :(

In case you're new to hardcore kernel debugging ;) :

What I did before I used GDB is "bug cornering".  Place the command:

   asm( "cli; hlt" );

Somewhere in the code around where you think it's going wrong.  If it
hangs before it crashes, you're too early; if it crashes, you're too late.
Move up the clihlt until you've cornered the exact location of the crash.
That usually won't necessarily make you find the bug directly, but it'll
at least give you a place to start...

Of course, why won't GDB work ??

-- Ramon



-
Alliance:	http://www.allos.org/
Archive:	http://humbolt.nl.linux.org/lists/