From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2yG5-0006YB-RF for qemu-devel@nongnu.org; Tue, 27 Oct 2009 22:27:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2yG1-0006Tw-4E for qemu-devel@nongnu.org; Tue, 27 Oct 2009 22:27:33 -0400 Received: from [199.232.76.173] (port=40185 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2yG0-0006Tn-TW for qemu-devel@nongnu.org; Tue, 27 Oct 2009 22:27:28 -0400 Received: from mail-pw0-f43.google.com ([209.85.160.43]:57268) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2yG0-0007r5-Jo for qemu-devel@nongnu.org; Tue, 27 Oct 2009 22:27:28 -0400 Received: by pwj6 with SMTP id 6so563429pwj.2 for ; Tue, 27 Oct 2009 19:27:27 -0700 (PDT) MIME-Version: 1.0 Date: Wed, 28 Oct 2009 10:27:26 +0800 Message-ID: From: =?UTF-8?B?5Y+26JCD?= Content-Type: multipart/alternative; boundary=0016e64c3de825820f0476f589a6 Subject: [Qemu-devel] user space debug for qemu-sh4 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0016e64c3de825820f0476f589a6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi=EF=BC=8C I am trying to construct a debug enviroment with qemu-sh4 and c= ame across a problem that looks like a qemu bug. My step is: 1. compile a "hello" program for sh4 2. try to run "hello" with qemu-sh4, it=E2=80=99s ok 3. use cmd "qemu-sh4 -L /usr/sh4-unknown-linux-gnu -g 1234 ./hello" to start qmeu . This will make qemu stop and listen on port 1234. 4. start gdb"./gdb hello", this gdb's target is sh4-unknown-linux-gnu. 5. connect to target "target remote localhost:1234" 6. set break point and run program. ,it's ok . 7. but when i tried to print a variable "a" in this point , the display value is erroneous, something like "$1=3D73628333" 8. I am sure the program is definitely right, but why the printed value is erroneous. This does not look like a gdb problem, I think it's a problem of qemu. Any help will be appreciated! thank you very much! --0016e64c3de825820f0476f589a6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi=EF=BC=8C I am trying to construct a debug enviroment with qemu-sh4 and c= ame across a problem that looks like a qemu bug.
=C2=A0
My step is:=C2=A01. compile a "hello" program for sh4
=C2=A02. try to r= un "hello" with qemu-sh4, it=E2=80=99s ok
=C2=A03. use cmd "qemu-sh4 -L /usr/sh4-unknown-linux-gnu -g 1234 ./hel= lo" to start qmeu . This will make qemu stop and listen on port 1234.<= br>4. start gdb"./gdb hello", this gdb's target is sh4-unknow= n-linux-gnu.
5. connect to target "target remote localhost:1234"
6. set br= eak point and run program. ,it's ok .
7. but when i tried to print a= variable "a" in this point , the display value is erroneous, som= ething like "$1=3D73628333"
8. I am sure the program is definitely right, but why the printed value is = erroneous.
=C2=A0
This does not look like a gdb problem, I think it&#= 39;s a problem of qemu.
=C2=A0
Any help will be appreciated!
than= k you very much! --0016e64c3de825820f0476f589a6--