From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HgbCQ-00010M-C7 for qemu-devel@nongnu.org; Wed, 25 Apr 2007 02:41:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HgbCO-0000zP-Ja for qemu-devel@nongnu.org; Wed, 25 Apr 2007 02:41:57 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HgbCO-0000zH-7y for qemu-devel@nongnu.org; Wed, 25 Apr 2007 02:41:56 -0400 Received: from fmmailgate03.web.de ([217.72.192.234]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hgb6m-0004tl-G5 for qemu-devel@nongnu.org; Wed, 25 Apr 2007 02:36:09 -0400 Message-ID: <462EF6D5.1040504@web.de> Date: Wed, 25 Apr 2007 08:36:05 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <5d649bdb0704241811s301aa41bg2a93b8b4c923b023@mail.gmail.com> <462EEF7A.5040708@web.de> <5d649bdb0704242329x587bbfc4qe9feefd037e24f60@mail.gmail.com> In-Reply-To: <5d649bdb0704242329x587bbfc4qe9feefd037e24f60@mail.gmail.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDF08D67D82F5C6C98E42CA37" Sender: jan.kiszka@web.de Subject: [Qemu-devel] Re: How to debug Linux kernel on qemu with kgdb? Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Neo Jia Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigDF08D67D82F5C6C98E42CA37 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Neo Jia wrote: > On 4/25/07, Jan Kiszka 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.htm= l >> >> (BTW, I think that kgdb bug is still unfixed - I never got a feedback.= ) >=20 > I can connect gdb through /dev/pts/XX. My qemu is lanuched by >=20 > qemu -nographic -hda linux.img -kernel > ./2.6.15.5-kgdb/vmlinuz-2.6.15.5-kgdb -serial pty -append "kgdbwait > console=3DttyS0 root=3D/dev/hda sb=3D0x220,5,1,5 ide2=3Dnoprobe ide3=3D= noprobe > ide4=3Dnoprobe ide5=3Dnoprobe" >=20 > Do you know where can I get the console output? >=20 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 --------------enigDF08D67D82F5C6C98E42CA37 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGLvbWniDOoMHTA+kRAsZdAKCBOPSHOA1MQXP85VI+CutrChk44gCfSp7m isWxvFGzF4cvwCJq+GIDapc= =l1WX -----END PGP SIGNATURE----- --------------enigDF08D67D82F5C6C98E42CA37--