| 509 | } |
| 510 | |
| 511 | bool DexFile::LineNumForPcCb(void* raw_context, const PositionInfo& entry) { |
| 512 | LineNumFromPcContext* context = reinterpret_cast<LineNumFromPcContext*>(raw_context); |
| 513 | |
| 514 | // We know that this callback will be called in |
| 515 | // ascending address order, so keep going until we find |
| 516 | // a match or we've just gone past it. |
| 517 | if (entry.address_ > context->address_) { |
| 518 | // The line number from the previous positions callback |
| 519 | // wil be the final result. |
| 520 | return true; |
| 521 | } else { |
| 522 | context->line_num_ = entry.line_; |
| 523 | return entry.address_ == context->address_; |
| 524 | } |
| 525 | } |
| 526 | |
| 527 | // Read a signed integer. "zwidth" is the zero-based byte count. |
| 528 | int32_t DexFile::ReadSignedInt(const uint8_t* ptr, int zwidth) { |
nothing calls this directly
no outgoing calls
no test coverage detected