This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Remove use of ConstString from Args::GetShellSafeArgument
ClosedPublic

Authored by bulbazord on Apr 14 2023, 5:19 PM.

Details

Summary

Having the names of various shells in ConstString's StringPool is not
really necessary, especially if they are otherwise not going to be there
in the first place. For example, if the person debugging uses bash on
their system, the shell parameter will have its m_filename set to a
ConstString containing "bash". However, fish, tcsh, zsh, and sh will
probably never be used and are just taking up space in the StringPool.

Diff Detail

Event Timeline

bulbazord created this revision.Apr 14 2023, 5:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 5:19 PM
bulbazord requested review of this revision.Apr 14 2023, 5:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 5:19 PM
mib accepted this revision.Apr 14 2023, 5:22 PM
This revision is now accepted and ready to land.Apr 14 2023, 5:22 PM