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

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

Issue 17000003: Fix warning in dartium builds: (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | no next file » | no next file with comments »
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 #include "vm/debugger.h" 5 #include "vm/debugger.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 8
9 #include "vm/code_generator.h" 9 #include "vm/code_generator.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 return NULL; 1724 return NULL;
1725 } 1725 }
1726 1726
1727 1727
1728 uword Debugger::GetPatchedStubAddress(uword breakpoint_address) { 1728 uword Debugger::GetPatchedStubAddress(uword breakpoint_address) {
1729 CodeBreakpoint* bpt = GetCodeBreakpoint(breakpoint_address); 1729 CodeBreakpoint* bpt = GetCodeBreakpoint(breakpoint_address);
1730 if (bpt != NULL) { 1730 if (bpt != NULL) {
1731 return bpt->saved_bytes_.target_address_; 1731 return bpt->saved_bytes_.target_address_;
1732 } 1732 }
1733 UNREACHABLE(); 1733 UNREACHABLE();
1734 return NULL; 1734 return 0L;
1735 } 1735 }
1736 1736
1737 1737
1738 // Remove and delete the source breakpoint bpt and its associated 1738 // Remove and delete the source breakpoint bpt and its associated
1739 // code breakpoints. 1739 // code breakpoints.
1740 void Debugger::RemoveBreakpoint(intptr_t bp_id) { 1740 void Debugger::RemoveBreakpoint(intptr_t bp_id) {
1741 SourceBreakpoint* prev_bpt = NULL; 1741 SourceBreakpoint* prev_bpt = NULL;
1742 SourceBreakpoint* curr_bpt = src_breakpoints_; 1742 SourceBreakpoint* curr_bpt = src_breakpoints_;
1743 while (curr_bpt != NULL) { 1743 while (curr_bpt != NULL) {
1744 if (curr_bpt->id() == bp_id) { 1744 if (curr_bpt->id() == bp_id) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1835 } 1835 }
1836 1836
1837 1837
1838 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { 1838 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) {
1839 ASSERT(bpt->next() == NULL); 1839 ASSERT(bpt->next() == NULL);
1840 bpt->set_next(code_breakpoints_); 1840 bpt->set_next(code_breakpoints_);
1841 code_breakpoints_ = bpt; 1841 code_breakpoints_ = bpt;
1842 } 1842 }
1843 1843
1844 } // namespace dart 1844 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698