Lines Matching +defs:region +defs:end

592   std::vector<Notifications>::iterator pos, end = m_notifications.end();
593 for (pos = m_notifications.begin(); pos != end; ++pos) {
606 notification_end = m_notifications.end();
1291 m_thread_id_to_index_id_map.end());
1328 // On the transition from Run to Stopped, we unlock the writer end of the run
1534 if (pos == m_language_runtimes.end() || !pos->second) {
3220 // If we attached and actually have a process on the other end, then
3380 // We didn't read enough data. Skip to the next memory region.
3497 // not end up propagating the last events through the event system, in which
3575 // may not end up propagating the last events through the event system, in
3975 // Otherwise we end up getting overlapping "(lldb) " prompts and
4303 // times when we're pretending that this is where we stopped at the end of
4324 // end up restarting the process.
4539 if (find_it != m_structured_data_plugin_map.end())
4700 // IOHandlerProcessSTDIO::Run(). We can end up with a python command that
4707 // of times, we can end up writing to m_pipe without ever consuming the
4708 // bytes from the pipe in IOHandlerProcessSTDIO::Run() and end up
5002 // or when they are done we will end up asking the plan above us whether we
5808 void Process::AddInvalidMemoryRegion(const LoadRange &region) {
5809 m_memory_cache.AddInvalidRange(region.GetRangeBase(), region.GetByteSize());
5812 bool Process::RemoveInvalidMemoryRange(const LoadRange &region) {
5813 return m_memory_cache.RemoveInvalidRange(region.GetRangeBase(),
5814 region.GetByteSize());
5839 auto found_iter = std::find(m_pre_resume_actions.begin(), m_pre_resume_actions.end(), element);
5840 if (found_iter != m_pre_resume_actions.end())
5990 if (iter != m_resolved_indirect_addresses.end()) {
6103 if (pos == m_instrumentation_runtimes.end()) {
6188 // Reject a region that does not contain the requested address.
6190 error = Status::FromErrorString("Invalid memory region");
6211 // We only check the end address, not start and end, because we assume that
6213 // region. We will have exited the loop by that point because the previous
6214 // region, the last mappable region, will have non-address bits in its end
6222 // set means the end of memory.
6224 // If we have non-address bits and some are set then the end
6225 // is at or beyond the end of mappable memory.
6329 if (find_it == m_structured_data_plugin_map.end()) {
6475 CreateCoreFileMemoryRange(const MemoryRegionInfo &region) {
6476 const addr_t addr = region.GetRange().GetRangeBase();
6477 llvm::AddressRange range(addr, addr + region.GetRange().GetByteSize());
6478 return {range, region.GetLLDBPermissions()};
6483 // the region.
6484 static bool AddDirtyPages(const MemoryRegionInfo &region,
6486 const auto &dirty_page_list = region.GetDirtyPageList();
6489 const uint32_t lldb_permissions = region.GetLLDBPermissions();
6490 const addr_t page_size = region.GetPageSize();
6499 if (range.end() == page_addr) {
6516 // Given a region, add the region to \a ranges.
6518 // Only add the region if it isn't empty and if it has some permissions.
6520 // given region. If the region has dirty page information, only dirty pages
6523 static void AddRegion(const MemoryRegionInfo &region, bool try_dirty_pages,
6526 if (region.GetRange().GetByteSize() == 0)
6529 if ((region.GetLLDBPermissions() & lldb::ePermissionsReadable) == 0)
6531 if (try_dirty_pages && AddDirtyPages(region, ranges))
6534 ranges.Append(region.GetRange().GetRangeBase(),
6535 region.GetRange().GetByteSize(),
6536 CreateCoreFileMemoryRange(region));
6554 for (const auto &region : dynamic_loader_mem_regions) {
6557 if (stack_ends.count(region.GetRange().GetRangeEnd()) == 0)
6558 AddRegion(region, true, ranges);
6613 for (const auto &region : regions)
6614 if (stack_ends.count(region.GetRange().GetRangeEnd()) == 0)
6615 AddRegion(region, try_dirty_pages, ranges);
6620 // pages are dirty within an memory region. If no memory regions have dirty
6629 for (const auto &region : regions) {
6630 if (stack_ends.count(region.GetRange().GetRangeEnd()) == 0 &&
6631 AddDirtyPages(region, ranges))
6637 // plug-in so fall back to any region with write access permissions.
6639 for (const auto &region : regions)
6640 if (stack_ends.count(region.GetRange().GetRangeEnd()) == 0 &&
6641 region.GetWritable() == MemoryRegionInfo::eYes)
6642 AddRegion(region, try_dirty_pages, ranges);
6647 // when a memory region is stack related. We check on this information, but we
6653 // stack region.
6659 // Some platforms support annotating the region information that tell us that
6662 for (const auto &region : regions) {
6664 if (stack_ends.count(region.GetRange().GetRangeEnd()) == 0 &&
6665 region.IsStackMemory() == MemoryRegionInfo::eYes)
6666 AddRegion(region, try_dirty_pages, ranges);