From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: 高国胜 <guosheng_gao@realsil.com.cn>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>,
Phil Muldoon <pmuldoon@redhat.com>
Subject: Re: 答复: How to use compile & execute function in GDB
Date: Thu, 16 Apr 2015 11:34:00 -0000 [thread overview]
Message-ID: <20150416113349.GA31239@host1.jankratochvil.net> (raw)
In-Reply-To: <0CEE46EB9C50E44486A861D738D3E20645F9C2E0@rsex2.realsil.com.cn>
On Thu, 16 Apr 2015 05:35:04 +0200, é«å½è wrote:
> Okï¼it works now.
Great.
> Can the compile & execute function be used for cross debugging in embed
> system?
You do not say the target triple. It requires gdbarch_infcall_mmap() which is
currently implemented only by linux-tdep.c, by looking up the "mmap64" symbol.
If you do not have it you should get
This target does not support inferior memory allocation by mmap.
or
evaluation of this expression requires the program to have a function "mmap64".
Either your target uses linux-tdep.c and it is enough to provide suitable
"mmap64" function in your target inferior or you need to implement appropriate
gdbarch_infcall_mmap() in your tdep GDB file.
Jan
prev parent reply other threads:[~2015-04-16 11:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-15 5:45 高国胜
2015-04-15 15:48 ` Jan Kratochvil
[not found] ` <0CEE46EB9C50E44486A861D738D3E20645F9C2E0@rsex2.realsil.com.cn>
2015-04-16 11:34 ` Jan Kratochvil [this message]
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=20150416113349.GA31239@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=guosheng_gao@realsil.com.cn \
--cc=pmuldoon@redhat.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).