forked from OSchip/llvm-project
Add warning if no actual locations were resolved when attempting
to set a breakpoint. llvm-svn: 117555
This commit is contained in:
parent
22b881dc34
commit
be484f413d
|
@ -372,6 +372,9 @@ CommandObjectBreakpointSet::Execute
|
||||||
output_stream.Printf ("Breakpoint created: ");
|
output_stream.Printf ("Breakpoint created: ");
|
||||||
bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief);
|
bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief);
|
||||||
output_stream.EOL();
|
output_stream.EOL();
|
||||||
|
if (bp->GetNumLocations() == 0)
|
||||||
|
output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual"
|
||||||
|
" locations.\n");
|
||||||
result.SetStatus (eReturnStatusSuccessFinishResult);
|
result.SetStatus (eReturnStatusSuccessFinishResult);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -416,6 +419,9 @@ CommandObjectBreakpointSet::Execute
|
||||||
output_stream.Printf ("Breakpoint created: ");
|
output_stream.Printf ("Breakpoint created: ");
|
||||||
bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief);
|
bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief);
|
||||||
output_stream.EOL();
|
output_stream.EOL();
|
||||||
|
if (bp->GetNumLocations() == 0)
|
||||||
|
output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual"
|
||||||
|
" locations.\n");
|
||||||
result.SetStatus (eReturnStatusSuccessFinishResult);
|
result.SetStatus (eReturnStatusSuccessFinishResult);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -446,6 +452,9 @@ CommandObjectBreakpointSet::Execute
|
||||||
output_stream.Printf ("Breakpoint created: ");
|
output_stream.Printf ("Breakpoint created: ");
|
||||||
bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief);
|
bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief);
|
||||||
output_stream.EOL();
|
output_stream.EOL();
|
||||||
|
if (bp->GetNumLocations() == 0)
|
||||||
|
output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual"
|
||||||
|
" locations.\n");
|
||||||
result.SetStatus (eReturnStatusSuccessFinishResult);
|
result.SetStatus (eReturnStatusSuccessFinishResult);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -490,6 +499,8 @@ CommandObjectBreakpointSet::Execute
|
||||||
output_stream.Printf ("Breakpoint created: ");
|
output_stream.Printf ("Breakpoint created: ");
|
||||||
bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief);
|
bp->GetDescription(&output_stream, lldb::eDescriptionLevelBrief);
|
||||||
output_stream.EOL();
|
output_stream.EOL();
|
||||||
|
if (bp->GetNumLocations() == 0)
|
||||||
|
output_stream.Printf ("WARNING: Unable to resolve breakpoint to any actual locations.\n");
|
||||||
result.SetStatus (eReturnStatusSuccessFinishResult);
|
result.SetStatus (eReturnStatusSuccessFinishResult);
|
||||||
}
|
}
|
||||||
else if (!bp)
|
else if (!bp)
|
||||||
|
|
Loading…
Reference in New Issue