From: Julian Seward Date: Thu, 10 Mar 2011 21:34:21 +0000 (+0000) Subject: Followup to r11619: more tidying up w.r.t. the renaming of X-Git-Tag: svn/VALGRIND_3_7_0~606 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f701e93f04a9001b1f6aa26c2868ab782ab6e4ec;p=thirdparty%2Fvalgrind.git Followup to r11619: more tidying up w.r.t. the renaming of 'struct _Thr :: opaque' to 'struct _Thr :: hgthread'. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11623 --- diff --git a/helgrind/libhb.h b/helgrind/libhb.h index 39711b52e4..ea8fcb2562 100644 --- a/helgrind/libhb.h +++ b/helgrind/libhb.h @@ -131,8 +131,8 @@ void libhb_srange_untrack ( Thr*, Addr, SizeT ); /* 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. */ diff --git a/helgrind/libhb_core.c b/helgrind/libhb_core.c index 05fda56a3e..566ee65053 100644 --- a/helgrind/libhb_core.c +++ b/helgrind/libhb_core.c @@ -5980,14 +5980,14 @@ void libhb_srange_untrack ( Thr* thr, Addr a, SizeT szB ) 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 )