diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-04-21 00:34:46 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-04-21 00:34:46 +0000 |
commit | 69dcf941a42b4a14915869bef673d56236c36a79 (patch) | |
tree | c76f5c78ec140d39169f434aae805a7dbf08c146 | |
parent | daddfa7cc7c7ce2d835f2c2aa53a296ce962703b (diff) | |
download | src-69dcf941a42b4a14915869bef673d56236c36a79.tar.gz src-69dcf941a42b4a14915869bef673d56236c36a79.zip |
Notes
-rw-r--r-- | contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp b/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp index bd06fa25f0a0..c64c1ec92e24 100644 --- a/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp +++ b/contrib/llvm/tools/lldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp @@ -163,8 +163,10 @@ static size_t DoReadMemory(lldb::pid_t pid, lldb::addr_t vm_addr, void *buf, pi_desc.piod_addr = buf; pi_desc.piod_len = size; - if (PTRACE(PT_IO, pid, (caddr_t)&pi_desc, 0) < 0) + if (PTRACE(PT_IO, pid, (caddr_t)&pi_desc, 0) < 0) { error.SetErrorToErrno(); + return 0; + } return pi_desc.piod_len; } |