[lkml]   [2003]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Kgdb: breakpoint in start_kernel wrote:
> How do I set the kernel breakpoint at 1st line in start_kernel() (init/main.c) using kgdb??
> -Ravi
First you need the KGDB that Andrew Morton has on his patch pages.
Then you put these line where ever you want to break:

#include <asm/kgdb.h>

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
Preemption patch:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:34    [W:0.041 / U:3.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site