Skip to content

Commit

Permalink
Fix set_function_break to use correct breakpoint
Browse files Browse the repository at this point in the history
op_i_time_breakpoint is now used
  • Loading branch information
psyeugenic authored and RaimoNiskanen committed Jun 3, 2010
1 parent 78d5145 commit 35fc33a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions erts/emulator/beam/beam_bp.c
Expand Up @@ -129,14 +129,14 @@ static int clear_function_break(Module *modp, BeamInstr *pc,
static BpData *is_break(BeamInstr *pc, BeamInstr break_op);

/* bp_hash */
#define BP_TIME_ADD(pi0, pi1) \
do { \
Uint r; \
(pi0)->count += (pi1)->count; \
(pi0)->s_time += (pi1)->s_time; \
(pi0)->us_time += (pi1)->us_time; \
r = (pi0)->us_time / 1000000; \
(pi0)->s_time += r; \
#define BP_TIME_ADD(pi0, pi1) \
do { \
Uint r; \
(pi0)->count += (pi1)->count; \
(pi0)->s_time += (pi1)->s_time; \
(pi0)->us_time += (pi1)->us_time; \
r = (pi0)->us_time / 1000000; \
(pi0)->s_time += r; \
(pi0)->us_time = (pi0)->us_time % 1000000; \
} while(0)

Expand Down Expand Up @@ -809,7 +809,7 @@ static int set_function_break(Module *modp, BeamInstr *pc,
bdc->count = 0; /* Reset call counter */
}
ErtsSmpBPUnlock(bdc);
} else if (break_op == (Uint) BeamOp(op_i_count_breakpoint)) {
} else if (break_op == (Uint) BeamOp(op_i_time_breakpoint)) {
BpDataTime *bdt = (BpDataTime *) bd;
Uint i = 0;

Expand Down

0 comments on commit 35fc33a

Please sign in to comment.