This is an archive of the discontinued LLVM Phabricator instance.

Add a setting to force overwriting commands in "command script add"
ClosedPublic

Authored by jingham on Mar 29 2022, 12:22 PM.

Details

Summary

When I added containers it seemed like it would be easier to accidentally overwrite extant commands, so I required a --overwrite option before "command script add" will overwrite an extant command. That still strikes me as a good idea for users of packages of commands, but when you are developing the commands it's annoying since it means you have to change the "command script add" commands in your package while iteratively adding them during development. So this patch adds a setting to turn off the overwrite requirement. That way you can set this setting while developing your package, then turn it off again when you're acting as a consumer of packages.

Diff Detail

Event Timeline

jingham created this revision.Mar 29 2022, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2022, 12:22 PM
jingham requested review of this revision.Mar 29 2022, 12:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2022, 12:22 PM
This revision is now accepted and ready to land.Mar 30 2022, 3:26 PM
labath added a subscriber: labath.Apr 1 2022, 5:13 AM
labath added inline comments.
lldb/source/Commands/CommandObjectCommands.cpp
1650

This doesn't seem right. eLazyBoolCalculate is effectively true, but I don't know if that's what you meant.