split the assert so that its more obvious which

part is failing


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5864
This commit is contained in:
Dirk Mueller 2006-04-27 11:05:13 +00:00
parent 67ce2183c9
commit a0d79c6e9f

View File

@ -1694,7 +1694,8 @@ ML_(generic_POST_sys_shmdt) ( ThreadId tid, UWord res, UWord arg0 )
SizeT s_len = s->end+1 - s->start;
Bool d;
vg_assert(s->kind == SkShmC && s->start == arg0);
vg_assert(s->kind == SkShmC);
vg_assert(s->start == arg0);
d = VG_(am_notify_munmap)(s_start, s_len);
s = NULL; /* s is now invalid */