qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Neo Jia <neojia@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: How to debug Linux kernel on qemu with kgdb?
Date: Wed, 25 Apr 2007 08:36:05 +0200	[thread overview]
Message-ID: <462EF6D5.1040504@web.de> (raw)
In-Reply-To: <5d649bdb0704242329x587bbfc4qe9feefd037e24f60@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]

Neo Jia wrote:
> On 4/25/07, Jan Kiszka <jan.kiszka@web.de> wrote:
>> Neo Jia wrote:
>> > hi,
>> >
>> > I am trying to use debug kgdb patched linux kernel on my qemu. Both
>> > the native and target platform are IA32. I am wondering if there is
>> > anyone can show me the procedure?
>>
>> Yep, see https://mail.gna.org/public/xenomai-core/2006-09/msg00202.html
>>
>> (BTW, I think that kgdb bug is still unfixed - I never got a feedback.)
> 
> I can connect gdb through /dev/pts/XX. My qemu is lanuched by
> 
> qemu -nographic -hda linux.img -kernel
> ./2.6.15.5-kgdb/vmlinuz-2.6.15.5-kgdb -serial pty -append "kgdbwait
> console=ttyS0 root=/dev/hda sb=0x220,5,1,5 ide2=noprobe ide3=noprobe
> ide4=noprobe ide5=noprobe"
> 
> Do you know where can I get the console output?
> 

Use "... -serial stdio -serial pty ..." and attached kgdb to the second
serial port (I think to recall that is default anyway). The first one is
then used for the kernel console.

> I would like to work out kgdb + qemu to debug linux kernel.

??? So you really want to debug the kernel when kgdb is applied, ie.
actually debug kgdb? If you only intend to debug the kernel itself, qemu
-s + gdb is enough.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

  parent reply	other threads:[~2007-04-25  6:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-25  1:11 [Qemu-devel] How to debug Linux kernel on qemu with kgdb? Neo Jia
2007-04-25  6:04 ` [Qemu-devel] " Jan Kiszka
2007-04-25  6:29   ` Neo Jia
2007-04-25  6:32     ` Neo Jia
2007-04-25  6:36     ` Jan Kiszka [this message]
2007-04-25 15:54       ` Neo Jia
2007-04-25 16:09         ` Jan Kiszka
2007-04-25 17:07           ` Neo Jia
2007-04-25 20:05             ` Jan Kiszka
2007-04-25 22:01               ` Neo Jia
2007-04-25 16:02       ` Neo Jia
2007-04-25  6:29   ` Jan Kiszka

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=462EF6D5.1040504@web.de \
    --to=jan.kiszka@web.de \
    --cc=neojia@gmail.com \
    --cc=qemu-devel@nongnu.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).