#include <asm/kgdb.h>
breakpoint();
Of course you only need the include once and can put it in the usual
place, but also in line, what ever you like.
Note that at this early stage some of the memory mapping and page
table stuff is not set up so don't try to access memory that may not
be there. You should be able to look around at most variables, single
step, set breakpoints, etc. But backtrace usually depends on traping
on bad memory addresses to stop and that may not work this early in
the bring up.
-- George Anzinger george@mvista.com High-res-timers: http://sourceforge.net/projects/high-res-timers/ Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/