|
From: Tom H. <to...@co...> - 2006-11-17 18:01:12
|
In message <116...@ba...>
Stephen Torri <st...@to...> wrote:
> This confirms my suspicions that I will need to create a loader.
>
> The framework I am building is written in C++. I need the functionality
> that you have in aspacemgr for creating the space at the desire location
> using the mmap2 system call. Since this coregrind functionality is not
> available from the installed headers I will either need to copy the code
> from the copy I checked out and use it or create it myself.
>
> What do you recommend that I do?
I think you need to explain a lot more about what you're trying to
do before I can answer that...
If your code is running as part of a client program managed by valgrind
then you can just call the mmap() function in the C library, or call the
appropriate mmap system call directly, and valgrind will intercept and
handle it and do it's best to honour the request.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|