From: 叶萃 <darwinye@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] user space debug for qemu-sh4
Date: Wed, 28 Oct 2009 10:27:26 +0800 [thread overview]
Message-ID: <cbf97fa40910271927t6e585993x5ecde0616398a156@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 873 bytes --]
Hi, I am trying to construct a debug enviroment with qemu-sh4 and came
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’s 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=73628333"
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!
[-- Attachment #2: Type: text/html, Size: 998 bytes --]
reply other threads:[~2009-10-28 2:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=cbf97fa40910271927t6e585993x5ecde0616398a156@mail.gmail.com \
--to=darwinye@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).