#include <debugger.h>
Definition at line 208 of file debugger.h.
◆ CodeBreakpoint()
Definition at line 1317 of file debugger.cc.
1321 : code_(
code.ptr()),
1323 enabled_count_(0),
1324 next_(nullptr),
1325 breakpoint_kind_(kind),
1330 AddBreakpointLocation(breakpoint_location);
1331 ASSERT(breakpoint_location->token_pos().IsReal());
1332}
const uint8_t kSafepointKind
◆ ~CodeBreakpoint()
dart::CodeBreakpoint::~CodeBreakpoint |
( |
| ) |
|
Definition at line 1334 of file debugger.cc.
1334 {
1335
1337
1338#ifdef DEBUG
1340 pc_ = 0ul;
1341 next_ = nullptr;
1342 breakpoint_kind_ = UntaggedPcDescriptors::kOther;
1343#endif
1344}
◆ Disable()
void dart::CodeBreakpoint::Disable |
( |
| ) |
|
Definition at line 1353 of file debugger.cc.
1353 {
1354 if (enabled_count_ == 1) {
1355 RestoreCode();
1356 }
1357 --enabled_count_;
1358}
◆ Enable()
void dart::CodeBreakpoint::Enable |
( |
| ) |
|
Definition at line 1346 of file debugger.cc.
1346 {
1347 if (enabled_count_ == 0) {
1348 PatchCode();
1349 }
1350 ++enabled_count_;
1351}
◆ FindAndDeleteBreakpointLocation()
bool dart::CodeBreakpoint::FindAndDeleteBreakpointLocation |
( |
BreakpointLocation * |
breakpoint_location | ) |
|
Definition at line 1370 of file debugger.cc.
1371 {
1372 for (intptr_t i = 0; i < breakpoint_locations_.length(); i++) {
1373 if (breakpoint_locations_[i] == breakpoint_location) {
1374 breakpoint_locations_.EraseAt(i);
1375 return true;
1376 }
1377 }
1378 return false;
1379}
◆ function()
FunctionPtr dart::CodeBreakpoint::function |
( |
| ) |
const |
|
inline |
◆ HasBreakpointLocation()
bool dart::CodeBreakpoint::HasBreakpointLocation |
( |
BreakpointLocation * |
breakpoint_location | ) |
|
Definition at line 1360 of file debugger.cc.
1361 {
1362 for (intptr_t i = 0; i < breakpoint_locations_.length(); i++) {
1363 if (breakpoint_locations_[i] == breakpoint_location) {
1364 return true;
1365 }
1366 }
1367 return false;
1368}
◆ HasNoBreakpointLocations()
bool dart::CodeBreakpoint::HasNoBreakpointLocations |
( |
| ) |
|
|
inline |
Definition at line 227 of file debugger.h.
227 {
228 return breakpoint_locations_.length() == 0;
229 }
◆ IsEnabled()
bool dart::CodeBreakpoint::IsEnabled |
( |
| ) |
const |
|
inline |
Definition at line 233 of file debugger.h.
233{ return enabled_count_ > 0; }
◆ OrigStubAddress()
CodePtr dart::CodeBreakpoint::OrigStubAddress |
( |
| ) |
const |
◆ pc()
uword dart::CodeBreakpoint::pc |
( |
| ) |
const |
|
inline |
◆ ToCString()
const char * dart::CodeBreakpoint::ToCString |
( |
| ) |
const |
Definition at line 211 of file debugger.cc.
211 {
212 if (breakpoint_locations_.length() == 0) {
213 return "unlinked breakpoint";
214 }
215
218
219 BreakpointLocation* breakpoint_location = breakpoint_locations_.At(0);
221 intptr_t line_number = breakpoint_location->line_number();
222
223 f.Printf(
"breakpoint at %s:%" Pd, source_url.ToCString(), line_number);
225}
static Thread * Current()
char * MakeCopyOfString(const char *str)
static const uint8_t buffer[]
◆ Debugger
◆ GroupDebugger
The documentation for this class was generated from the following files: