After an exec, the inferior is a new process and none of these memory
regions are still allocated. Clear them out.
Differential Revision: https://reviews.llvm.org/D140253
m_thread_list.Clear();
m_activities.Clear();
m_breakpoints.DisableAll();
+ m_task.ClearAllocations();
}
if (m_sent_interrupt_signo != 0) {
nub_addr_t AllocateMemory(nub_size_t size, uint32_t permissions);
nub_bool_t DeallocateMemory(nub_addr_t addr);
+ void ClearAllocations();
mach_port_t ExceptionPort() const;
bool ExceptionPortIsValid() const;
return false;
}
+//----------------------------------------------------------------------
+// MachTask::ClearAllocations
+//----------------------------------------------------------------------
+void MachTask::ClearAllocations() {
+ m_allocations.clear();
+}
+
void MachTask::TaskPortChanged(task_t task)
{
m_task = task;