Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(138)

Side by Side Diff: runtime/vm/debugger.h

Issue 10686003: Better breakpoint placement (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | runtime/vm/debugger.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_DEBUGGER_H_ 5 #ifndef VM_DEBUGGER_H_
6 #define VM_DEBUGGER_H_ 6 #define VM_DEBUGGER_H_
7 7
8 #include "include/dart_debugger_api.h" 8 #include "include/dart_debugger_api.h"
9 9
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 enum ResumeAction { 285 enum ResumeAction {
286 kContinue, 286 kContinue,
287 kStepOver, 287 kStepOver,
288 kStepInto, 288 kStepInto,
289 kStepOut 289 kStepOut
290 }; 290 };
291 291
292 void EnsureFunctionIsDeoptimized(const Function& func); 292 void EnsureFunctionIsDeoptimized(const Function& func);
293 void InstrumentForStepping(const Function& target_function); 293 void InstrumentForStepping(const Function& target_function);
294 SourceBreakpoint* SetBreakpoint(const Function& target_function, 294 SourceBreakpoint* SetBreakpoint(const Function& target_function,
295 intptr_t token_pos); 295 intptr_t first_token_pos,
296 intptr_t last_token_pos);
296 void RemoveInternalBreakpoints(); 297 void RemoveInternalBreakpoints();
297 void UnlinkCodeBreakpoints(SourceBreakpoint* src_bpt); 298 void UnlinkCodeBreakpoints(SourceBreakpoint* src_bpt);
298 void RegisterSourceBreakpoint(SourceBreakpoint* bpt); 299 void RegisterSourceBreakpoint(SourceBreakpoint* bpt);
299 void RegisterCodeBreakpoint(CodeBreakpoint* bpt); 300 void RegisterCodeBreakpoint(CodeBreakpoint* bpt);
300 SourceBreakpoint* GetSourceBreakpoint(const Function& func, 301 SourceBreakpoint* GetSourceBreakpoint(const Function& func,
301 intptr_t token_pos); 302 intptr_t token_pos);
302 CodeBreakpoint* MakeCodeBreakpoint(const Function& func, 303 CodeBreakpoint* MakeCodeBreakpoint(const Function& func,
303 intptr_t token_pos); 304 intptr_t first_token_pos,
305 intptr_t last_token_pos);
304 306
305 // Returns NULL if no breakpoint exists for the given address. 307 // Returns NULL if no breakpoint exists for the given address.
306 CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address); 308 CodeBreakpoint* GetCodeBreakpoint(uword breakpoint_address);
307 309
308 void SyncBreakpoint(SourceBreakpoint* bpt); 310 void SyncBreakpoint(SourceBreakpoint* bpt);
309 311
310 DebuggerStackTrace* CollectStackTrace(); 312 DebuggerStackTrace* CollectStackTrace();
311 void SignalBpResolved(SourceBreakpoint *bpt); 313 void SignalBpResolved(SourceBreakpoint *bpt);
312 314
313 bool IsDebuggable(const Function& func); 315 bool IsDebuggable(const Function& func);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 intptr_t exc_pause_info_; 354 intptr_t exc_pause_info_;
353 355
354 friend class SourceBreakpoint; 356 friend class SourceBreakpoint;
355 DISALLOW_COPY_AND_ASSIGN(Debugger); 357 DISALLOW_COPY_AND_ASSIGN(Debugger);
356 }; 358 };
357 359
358 360
359 } // namespace dart 361 } // namespace dart
360 362
361 #endif // VM_DEBUGGER_H_ 363 #endif // VM_DEBUGGER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | runtime/vm/debugger.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698