mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Change eq_Invar to handle all kinds of InVars.
Move an assert to a better spot. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14619
This commit is contained in:
parent
2476b8ff75
commit
1012054b60
@ -868,11 +868,11 @@ static void pp_Invar ( Invar* i )
|
||||
/* Compare two Invars for equality. */
|
||||
static Bool eq_Invar ( Invar* i1, Invar* i2 )
|
||||
{
|
||||
tl_assert(i1->tag != Inv_Unset);
|
||||
tl_assert(i2->tag != Inv_Unset);
|
||||
if (i1->tag != i2->tag)
|
||||
return False;
|
||||
switch (i1->tag) {
|
||||
case Inv_Unset:
|
||||
return True;
|
||||
case Inv_Unknown:
|
||||
return True;
|
||||
case Inv_Stack0:
|
||||
@ -1264,6 +1264,8 @@ static void preen_global_Invar ( Invar* inv, Addr a, SizeT len )
|
||||
case Inv_StackN:
|
||||
case Inv_Unknown:
|
||||
break;
|
||||
case Inv_Unset: /* this should never happen */
|
||||
/* fallthrough */
|
||||
default:
|
||||
tl_assert(0);
|
||||
}
|
||||
@ -1809,11 +1811,11 @@ void helperc__mem_access ( /* Known only at run time: */
|
||||
|
||||
/* Did we see something different from before? If no, then there's
|
||||
no error. */
|
||||
tl_assert(inv->tag != Inv_Unset);
|
||||
|
||||
if (LIKELY(eq_Invar(&new_inv, inv)))
|
||||
return;
|
||||
|
||||
tl_assert(inv->tag != Inv_Unset);
|
||||
|
||||
VG_(memset)(bufE, 0, sizeof(bufE));
|
||||
show_Invar( bufE, sizeof(bufE)-1, inv, frame->depth );
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user