From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hgb8m-00084r-O4 for qemu-devel@nongnu.org; Wed, 25 Apr 2007 02:38:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hgb8k-000843-CR for qemu-devel@nongnu.org; Wed, 25 Apr 2007 02:38:11 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hgb8k-000840-76 for qemu-devel@nongnu.org; Wed, 25 Apr 2007 02:38:10 -0400 Received: from nz-out-0506.google.com ([64.233.162.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hgb38-0004N8-Ve for qemu-devel@nongnu.org; Wed, 25 Apr 2007 02:32:23 -0400 Received: by nz-out-0506.google.com with SMTP id i11so380789nzi for ; Tue, 24 Apr 2007 23:32:22 -0700 (PDT) Message-ID: <5d649bdb0704242332s3637ded3m901ed9398aa2ee72@mail.gmail.com> Date: Wed, 25 Apr 2007 01:32:21 -0500 From: "Neo Jia" In-Reply-To: <5d649bdb0704242329x587bbfc4qe9feefd037e24f60@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5d649bdb0704241811s301aa41bg2a93b8b4c923b023@mail.gmail.com> <462EEF7A.5040708@web.de> <5d649bdb0704242329x587bbfc4qe9feefd037e24f60@mail.gmail.com> 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: Jan Kiszka Cc: qemu-devel@nongnu.org On 4/25/07, 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.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? > > I would like to work out kgdb + qemu to debug linux kernel. > > Thanks, > Neo > BTW, the error message I got is "Program terminated with signal 0, Signal 0." Thanks, Neo > > > > Jan > > > > > > > > > -- > I would remember that if researchers were not ambitious > probably today we haven't the technology we are using! > -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using!