Re: linux-source debugging with kgdb-patch
george anzinger <george <at> mvista.com>
2003-04-18 00:26:52 GMT
Mathur, Shobhit wrote:
>
>
> Hello,
>
> BACKGROUND:
>
> I was keen to see kgdb running for purely academic reasons. Thus,
> I made a setup of 2 machines for source-level debugging of the
> linux-kernel. The procedure mentioned on the web-site
> [ kgdb.sourceforge.net] has been adhered to. I was able to
> successfully configure the setup. Also, I decided to use "ddd" front-end
> on gdb [local m/c] for debugging the kgdb-patched kernel on the remote
> machine, which is the usual setup for such debugging-efforts.
> The m/c to be debugged stops with the message "Waiting for
> connection from remote gdb..." until the "target remote" command is run
> from the "gdb" prompt of "ddd", upon which the m/c to be debugged
> continues it's bootup till it shows the command-prompt.
>
> PROBLEM:
>
> I was interested in setting a break-point in start_kernel thru' "ddd"
> such that the boot-up of the m/c to be debugged could be analysed
> step-by-step remotely. Though, I am able to set the breakpoint in
> start_kernel(),
> the commands "run" or "continue" on the "gdb" prompt, only throw up the
> following errors :
>
> (gdb) info break
> Num Type Disp Enb Address What
(Continue reading)