From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: How to debug a kernel thread?
Date: Tue, 3 Apr 2012 23:00:09 +0700 [thread overview]
Message-ID: <CAGdaadak6KXkpbHqMuLJv-xeVXhuMJQGXdGApk4t818_bdhgiQ@mail.gmail.com> (raw)
In-Reply-To: <CAOXENUj9F6qHEzcmqRbmoLOan0ivWuer3-vuWqcpA8nuqkyMOQ@mail.gmail.com>
Hi :)
On Tue, Apr 3, 2012 at 17:37, Parmenides <mobile.parmenides@gmail.com> wrote:
> source tree. I compiled the kernel with kgdb and run it in qemu with
> virtual serial port:
>
> ? ? qemu -kernel bzImage -initrd image.cpio.gz -append
> "kgdboc=ttyS0,115200 kgdbwait" -serial tcp::1234,server
>
> In another console, the gdb was given command:
>
> ? ? (gdb) target remote local:1234
> ? ? (gdb) continue
>
> Then I pressed Ctrl+C to suspend the target, but got no reply. The gdb
> got stuck and lost control to the target. As such, there is no
IIRC, years ago I did the same thing like yours, using kgdb and qemu.
What I forgot is how I hook into the remote kgdb stub.
Here's my suggestion: try other option outside tcp, perhaps UNIX
socket...or anything that's supported by gdb. And see if it makes any
difference.
--
regards,
Mulyadi Santosa
Freelance Linux trainer and consultant
blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
prev parent reply other threads:[~2012-04-03 16:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-30 12:00 How to debug a kernel thread? Parmenides
2012-03-30 14:48 ` Mulyadi Santosa
[not found] ` <CAOXENUj9F6qHEzcmqRbmoLOan0ivWuer3-vuWqcpA8nuqkyMOQ@mail.gmail.com>
2012-04-03 16:00 ` Mulyadi Santosa [this message]
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=CAGdaadak6KXkpbHqMuLJv-xeVXhuMJQGXdGApk4t818_bdhgiQ@mail.gmail.com \
--to=mulyadi.santosa@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).