|
From: <sv...@va...> - 2011-03-10 21:34:29
|
Author: sewardj
Date: 2011-03-10 21:34:21 +0000 (Thu, 10 Mar 2011)
New Revision: 11623
Log:
Followup to r11619: more tidying up w.r.t. the renaming of
'struct _Thr :: opaque' to 'struct _Thr :: hgthread'.
Modified:
trunk/helgrind/libhb.h
trunk/helgrind/libhb_core.c
Modified: trunk/helgrind/libhb.h
===================================================================
--- trunk/helgrind/libhb.h 2011-03-10 17:40:22 UTC (rev 11622)
+++ trunk/helgrind/libhb.h 2011-03-10 21:34:21 UTC (rev 11623)
@@ -131,8 +131,8 @@
/* Get and set the hgthread (pointer to corresponding Thread
structure). */
-void* libhb_get_Thr_hgthread ( Thr* );
-void libhb_set_Thr_hgthread ( Thr*, void* );
+Thread* libhb_get_Thr_hgthread ( Thr* );
+void libhb_set_Thr_hgthread ( Thr*, Thread* );
/* Low level copy of shadow state from [src,src+len) to [dst,dst+len).
Overlapping moves are checked for and asserted against. */
Modified: trunk/helgrind/libhb_core.c
===================================================================
--- trunk/helgrind/libhb_core.c 2011-03-10 17:40:22 UTC (rev 11622)
+++ trunk/helgrind/libhb_core.c 2011-03-10 21:34:21 UTC (rev 11623)
@@ -5980,14 +5980,14 @@
if (0 && TRACEME(a,szB)) trace(thr,a,szB,"untrack-after ");
}
-void* libhb_get_Thr_hgthread ( Thr* thr ) {
+Thread* libhb_get_Thr_hgthread ( Thr* thr ) {
tl_assert(thr);
return thr->hgthread;
}
-void libhb_set_Thr_hgthread ( Thr* thr, void* v ) {
+void libhb_set_Thr_hgthread ( Thr* thr, Thread* hgthread ) {
tl_assert(thr);
- thr->hgthread = v;
+ thr->hgthread = hgthread;
}
void libhb_copy_shadow_state ( Thr* thr, Addr src, Addr dst, SizeT len )
|