}
/*--------------------------------------------------------------------*/
-/*--- manage allocation of memory on behalf of the client ---*/
+/*--- Manage allocation of memory on behalf of the client ---*/
/*--------------------------------------------------------------------*/
// Returns 0 on failure.
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);
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)
{