This is the mail archive of the
mailing list for the GDB project.
Re: çå: How to use compile & execute function in GDB
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: éåè <guosheng_gao at realsil dot com dot cn>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>, Phil Muldoon <pmuldoon at redhat dot com>
- Date: Thu, 16 Apr 2015 13:33:49 +0200
- Subject: Re: çå: How to use compile & execute function in GDB
- Authentication-results: sourceware.org; auth=none
- References: <0CEE46EB9C50E44486A861D738D3E20645F9C073 at rsex2 dot realsil dot com dot cn> <20150415154836 dot GA10538 at host1 dot jankratochvil dot net> <0CEE46EB9C50E44486A861D738D3E20645F9C2E0 at rsex2 dot realsil dot com dot cn>
On Thu, 16 Apr 2015 05:35:04 +0200, éåè wrote:
> Okïit works now.
> Can the compile & execute function be used for cross debugging in embed
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.
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.