[LLDB] Properly return errors from "memory region --all"
authorDavid Spickett <david.spickett@linaro.org>
Fri, 16 Sep 2022 12:48:58 +0000 (12:48 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Fri, 23 Sep 2022 12:32:12 +0000 (12:32 +0000)
commitee582001bf19be8611257df7c5fc5a5e7e7da586
tree7e8ba58c988d5d0c6b6560b35ba74e30d4fc4e51
parent181f200a1c76c4ddf50a9d5bb091bf32781bfbf7
[LLDB] Properly return errors from "memory region --all"

When I wrote the initial version I forgot that a region being
unmapped is not an error. There are real errors that we don't
want to hide, such as the remote not supporting the
qMemoryRegionInfo packet (gdbserver does not).

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D134029
lldb/source/Commands/CommandObjectMemory.cpp
lldb/test/API/functionalities/memory-region/TestMemoryRegion.py