From: "Mathur, Shobhit" <Shobhit_mathur@adaptec.com>
To: linux-c-programming@vger.kernel.org,
linux-serial@vger.kernel.org, linux-newbie@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: linux-source debugging with kgdb-patch
Date: Thu, 17 Apr 2003 20:46:24 +0530 [thread overview]
Message-ID: <3E9EC548.117005DD@adaptec.com> (raw)
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
7 breakpoint keep y 0xc027e7f0 in start_kernel at
init/main.c:614
(gdb) run
warning: shared library handler failed to enable breakpoint
warning: Cannot insert breakpoint 7:
Cannot access memory at address 0xc027e7f0
QUESTION:
I very strongly suspect that this exercise follows a particular sequence
of steps to get it right. Either I am missing some step or I am not
following the "order". In either case, I would be glad to receive some
help/comments on my academic endeavour to be able to remotely debug the
kernel.
- Kindly let me know a solution
- TIA
- Shobhit Mathur
next reply other threads:[~2003-04-17 15:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-17 15:16 Mathur, Shobhit [this message]
2003-04-18 0:26 ` linux-source debugging with kgdb-patch george anzinger
-- strict thread matches above, loose matches on Subject: below --
2003-04-16 0:40 Mathur, Shobhit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E9EC548.117005DD@adaptec.com \
--to=shobhit_mathur@adaptec.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-newbie@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.