suite/tests/client-interface/truncate.dll.c
/* PR 306971: test bb truncation */
PR 306971: test bb truncation
PR 306971 : test bb truncation
static
dr_emit_flags_t bb_event(void *drcontext, void *tag, instrlist_t *bb,
                         bool for_trace, bool translating)
{
    instr_t *last = instrlist_last(bb);
    if (last != instrlist_first(bb)) {
        instrlist_remove(bb, last);
        instr_destroy(drcontext, last);
    }
    return DR_EMIT_DEFAULT;
}
static dr_emit_flags_t bb_event ( void * drcontext , void * tag , instrlist_t * bb , bool for_trace , bool translating ) { instr_t * last = instrlist_last ( bb ) ; if ( last != instrlist_first ( bb ) ) { instrlist_remove ( bb , last ) ; instr_destroy ( drcontext , last ) ; } return DR_EMIT_DEFAULT ; }
PR 306971: test bb truncation
PR 306971 : test bb truncation
/* remove last instr from every multi-instr bb */