| Index: src/debug.cc
|
| ===================================================================
|
| --- src/debug.cc (revision 4865)
|
| +++ src/debug.cc (working copy)
|
| @@ -1028,8 +1028,8 @@
|
|
|
|
|
| void Debug::SetBreakPoint(Handle<SharedFunctionInfo> shared,
|
| - int source_position,
|
| - Handle<Object> break_point_object) {
|
| + Handle<Object> break_point_object,
|
| + int* source_position) {
|
| HandleScope scope;
|
|
|
| if (!EnsureDebugInfo(shared)) {
|
| @@ -1043,9 +1043,11 @@
|
|
|
| // Find the break point and change it.
|
| BreakLocationIterator it(debug_info, SOURCE_BREAK_LOCATIONS);
|
| - it.FindBreakLocationFromPosition(source_position);
|
| + it.FindBreakLocationFromPosition(*source_position);
|
| it.SetBreakPoint(break_point_object);
|
|
|
| + *source_position = it.position();
|
| +
|
| // At least one active break point now.
|
| ASSERT(debug_info->GetBreakPointCount() > 0);
|
| }
|
|
|