OLD | NEW |
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 "platform/address_sanitizer.h" | 9 #include "platform/address_sanitizer.h" |
10 | 10 |
(...skipping 1937 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1948 } | 1948 } |
1949 // Follow the link. | 1949 // Follow the link. |
1950 async_stack_trace = async_stack_trace.async_link(); | 1950 async_stack_trace = async_stack_trace.async_link(); |
1951 } | 1951 } |
1952 | 1952 |
1953 return stack_trace; | 1953 return stack_trace; |
1954 } | 1954 } |
1955 | 1955 |
1956 | 1956 |
1957 DebuggerStackTrace* Debugger::CollectAwaiterReturnStackTrace() { | 1957 DebuggerStackTrace* Debugger::CollectAwaiterReturnStackTrace() { |
1958 if (!FLAG_causal_async_stacks) { | 1958 if (!FLAG_async_debugger_stepping) { |
1959 return NULL; | 1959 return NULL; |
1960 } | 1960 } |
1961 // Causal async stacks are not supported in the AOT runtime. | 1961 // Causal async stacks are not supported in the AOT runtime. |
1962 ASSERT(!FLAG_precompiled_runtime); | 1962 ASSERT(!FLAG_precompiled_runtime); |
1963 | 1963 |
1964 Thread* thread = Thread::Current(); | 1964 Thread* thread = Thread::Current(); |
1965 Zone* zone = thread->zone(); | 1965 Zone* zone = thread->zone(); |
1966 Isolate* isolate = thread->isolate(); | 1966 Isolate* isolate = thread->isolate(); |
1967 DebuggerStackTrace* stack_trace = new DebuggerStackTrace(8); | 1967 DebuggerStackTrace* stack_trace = new DebuggerStackTrace(8); |
1968 | 1968 |
(...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4269 | 4269 |
4270 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 4270 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
4271 ASSERT(bpt->next() == NULL); | 4271 ASSERT(bpt->next() == NULL); |
4272 bpt->set_next(code_breakpoints_); | 4272 bpt->set_next(code_breakpoints_); |
4273 code_breakpoints_ = bpt; | 4273 code_breakpoints_ = bpt; |
4274 } | 4274 } |
4275 | 4275 |
4276 #endif // !PRODUCT | 4276 #endif // !PRODUCT |
4277 | 4277 |
4278 } // namespace dart | 4278 } // namespace dart |
OLD | NEW |