mirror of
https://github.com/intel/llvm.git
synced 2026-01-14 03:50:17 +08:00
Fixed a crasher due to not checking if a shared pointer (m_last_created_breakpoint)
contained a valid object pointer. llvm-svn: 124155
This commit is contained in:
@@ -326,8 +326,11 @@ Target::RemoveBreakpointByID (break_id_t break_id)
|
||||
m_internal_breakpoint_list.Remove(break_id, false);
|
||||
else
|
||||
{
|
||||
if (m_last_created_breakpoint->GetID() == break_id)
|
||||
m_last_created_breakpoint.reset();
|
||||
if (m_last_created_breakpoint)
|
||||
{
|
||||
if (m_last_created_breakpoint->GetID() == break_id)
|
||||
m_last_created_breakpoint.reset();
|
||||
}
|
||||
m_breakpoint_list.Remove(break_id, true);
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user