mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
Darwin: try to fix assert in DRD
The hard coded memory mapping trigger drd_start_using_mem_w_perms which will lead to tl_assert(vg_tid != VG_INVALID_THREADID); But vg_tid was just set to VG_INVALID_THREADID before the hard coded memory map.
This commit is contained in:
parent
9fb974c359
commit
6e4eb0b674
@ -2047,10 +2047,6 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp )
|
||||
True /* executable? */,
|
||||
0 /* di_handle: no associated debug info */ );
|
||||
|
||||
/* Clear the running thread indicator */
|
||||
VG_(running_tid) = VG_INVALID_THREADID;
|
||||
vg_assert(VG_(running_tid) == VG_INVALID_THREADID);
|
||||
|
||||
/* Darwin only: tell the tools where the client's kernel commpage
|
||||
is. It would be better to do this by telling aspacemgr about
|
||||
it -- see the now disused record_system_memory() in
|
||||
@ -2068,6 +2064,10 @@ Int valgrind_main ( Int argc, HChar **argv, HChar **envp )
|
||||
True, False, True, /* r-x */
|
||||
0 /* di_handle: no associated debug info */ );
|
||||
# endif
|
||||
|
||||
/* Clear the running thread indicator */
|
||||
VG_(running_tid) = VG_INVALID_THREADID;
|
||||
vg_assert(VG_(running_tid) == VG_INVALID_THREADID);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user