This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Handle empty search string in "memory find"
ClosedPublic

Authored by DavidSpickett on Apr 14 2022, 7:19 AM.

Details

Summary

Given that you'd never find empty string, just error.

Also add a test that an invalid expr generates an error.

Diff Detail

Event Timeline

DavidSpickett created this revision.Apr 14 2022, 7:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2022, 7:19 AM
DavidSpickett requested review of this revision.Apr 14 2022, 7:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2022, 7:19 AM

Previously this would crash.

Unless we'd rather treat it as \x0 but that could be confusing. You can always search for literal 0 instead.

This revision is now accepted and ready to land.Apr 14 2022, 12:31 PM
This revision was automatically updated to reflect the committed changes.