很意外的,才知道,当用 qemu 的时候,连 KGDB 都不需要,直接 qemu -s -S 就可以了:)。所以原文有关部分稍微改了一下。
所以,qemu 可以这样启动:
qemu ${QEMU_ARGS} \
-kernel "$VMLINUZ" \
-S -s -p ${KGDB_TCPPORT} \
-append "${KERNEL_CMDLINE}" \
-hda "${QEMU_HDA}" >/dev/null &
脚本执行速度也快了很多。
--------------------------------------------------------------------
From: ZC Miao
To: Francis Moreau
Subject: Re: Your very interesting blog about KGDB & QEMU
Date: Tue, 22 Jul 2008 16:57:31 +0100
Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9)
On Tue, 2008-07-22 at 17:18 +0200, Francis Moreau wrote:
> Hello,
>
> I found your blog at:
>
> http://blog.chinaunix.net/u/8057/showart_1087126.html
>
> very interesting even if I don't speak/read chinese ;)
>
> I'm wondering if there's an advantage to use KGDB over qemu -s -S.
> Do you have any idea ?
>
> Thanks !
Hello,
Thanks for pushing me thinking about this, I didn't know this feature of
qemu before. And I tried "qemu -s -S" just now, it seems that every
thing went smoothly. Ok, so now I think is that: when we use qemu for
debugging, we don't need kgdb :[...
Well, that's a surprise to me. But I do need kgdb, because I want to
debug my tablet with kgdb anyway ;)
Thanks for your information!
--
ZC Miao (hellwolf.misty@gmail.com)
Blog http://hellwolf.cublog.cn
gpg --keyserver pgp.mit.edu --recv-key 0x6B174C6F
I'd like MY data-base JULIENNED and stir-fried!
阅读(1953) | 评论(0) | 转发(0) |