Skip to content

Commit

Permalink
Use dr_fragment_app_pc with increment/decrement
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav92003 committed Dec 13, 2023
1 parent 21791cc commit 7c449a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions suite/tests/client-interface/flush.dll.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* **********************************************************
* Copyright (c) 2011-2021 Google, Inc. All rights reserved.
* Copyright (c) 2011-2023 Google, Inc. All rights reserved.
* Copyright (c) 2007-2010 VMware, Inc. All rights reserved.
* **********************************************************/

Expand Down Expand Up @@ -79,7 +79,7 @@ find(void *tag)
}

static void
increment(void *tag)
increment(app_pc tag)
{
elem_t *elem;

Expand All @@ -106,7 +106,7 @@ increment(void *tag)
}

static void
decrement(void *tag)
decrement(app_pc tag)
{
elem_t *elem;

Expand Down Expand Up @@ -161,14 +161,14 @@ static dr_emit_flags_t
trace_event(void *drcontext, void *tag, instrlist_t *trace, bool translating)
{
if (!translating)
increment(tag);
increment(dr_fragment_app_pc(tag));
return DR_EMIT_DEFAULT;
}

static void
deleted_event(void *dcontext, void *tag)
{
decrement(tag);
decrement(dr_fragment_app_pc(tag));
}

void
Expand Down Expand Up @@ -246,7 +246,7 @@ bb_event(void *drcontext, void *tag, instrlist_t *bb, bool for_trace, bool trans
{
instr_t *instr;
if (!translating)
increment(tag);
increment(dr_fragment_app_pc(tag));

/* I'm looking for a specific BB in the test .exe. I've marked
* it with a couple nops.
Expand Down

0 comments on commit 7c449a2

Please sign in to comment.