[lldb] Handle empty search string in "memory find"
authorDavid Spickett <david.spickett@linaro.org>
Thu, 14 Apr 2022 14:06:27 +0000 (14:06 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Tue, 19 Apr 2022 09:19:38 +0000 (09:19 +0000)
commit68e73eaee632b29d36e8b24f62e77ef26084885d
tree050cf7fbc1d4a26f648d45f964ffbdb3c49ae260
parentf3ee0afc6739bf2990f9d302ff6b28dbb0429e8d
[lldb] Handle empty search string in "memory find"

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

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

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D123793
lldb/source/Commands/CommandObjectMemory.cpp
lldb/test/API/functionalities/memory/find/TestMemoryFind.py