From: Nicholas Nethercote Date: Sat, 10 Jul 2004 16:59:25 +0000 (+0000) Subject: Comment changes only. X-Git-Tag: svn/VALGRIND_2_1_2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b88ea45f727bd9c483568f376483cf98a9b80a23;p=thirdparty%2Fvalgrind.git Comment changes only. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2468 --- diff --git a/coregrind/vg_memory.c b/coregrind/vg_memory.c index c7a71de633..21d83c1b42 100644 --- a/coregrind/vg_memory.c +++ b/coregrind/vg_memory.c @@ -672,7 +672,7 @@ Bool VG_(is_addressable)(Addr p, Int size) } /*--------------------------------------------------------------------*/ -/*--- manage allocation of memory on behalf of the client ---*/ +/*--- Manage allocation of memory on behalf of the client ---*/ /*--------------------------------------------------------------------*/ // Returns 0 on failure. @@ -709,6 +709,10 @@ void VG_(client_free)(Addr addr) VG_(munmap)((void *)s->addr, s->len); } +/*--------------------------------------------------------------------*/ +/*--- Querying memory layout ---*/ +/*--------------------------------------------------------------------*/ + Bool VG_(is_client_addr)(Addr a) { return a >= VG_(client_base) && a < VG_(client_end); @@ -754,6 +758,9 @@ Addr VG_(get_shadow_size)(void) return VG_(shadow_end)-VG_(shadow_base); } +/*--------------------------------------------------------------------*/ +/*--- manage allocation of memory on behalf of the client ---*/ +/*--------------------------------------------------------------------*/ void VG_(init_shadow_range)(Addr p, UInt sz, Bool call_init) {