diff options
author | Pavel Labath <pavel@labath.sk> | 2019-07-01 12:00:25 +0000 |
---|---|---|
committer | Pavel Labath <pavel@labath.sk> | 2019-07-01 12:00:25 +0000 |
commit | 4f0a37728052d999a9bbac4cd5d81b1f264567cd (patch) | |
tree | dec51efdd16b0debe3d537ccd47c2b5092e94852 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | |
parent | 881aab4dc3dfbf8109f55b67f0db86b3a36a9bc7 (diff) | |
download | bcm5719-llvm-4f0a37728052d999a9bbac4cd5d81b1f264567cd.tar.gz bcm5719-llvm-4f0a37728052d999a9bbac4cd5d81b1f264567cd.zip |
Fix TestGdbRemoteLibrariesSvr4Support
D62502 had a bug (visible only with D62503 reverted), where it would
error out if attempting to read a string from memory and the memory page
after the string happened to be unmapped.
This fixes the problem by checking for whether ReadMemory read *any*
bytes, instead of checking whether it returned an error. A greater
question is whether ReadMemory should even return an error if it read at
least one byte, but I'm leaving that for a separate patch.
llvm-svn: 364748
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp')
0 files changed, 0 insertions, 0 deletions