freebsd-dev/contrib/llvm/tools/lldb
Ed Maste 69dcf941a4 lldb: propagate error to user if memory read fails
Previously, an attempt to read an unreadable access reported zeros:

(lldb) memory read -format hex -size 8 0
0x00000000: 0x0000000000000000 0x0000000000000000
0x00000010: 0x0000000000000000 0x0000000000000000
...

Now, if DoReadMemory encounters error then return 0 (bytes read) so we
report the error to the user:

(lldb) memory read -format hex -size 8 0
error: Bad address

LLVM PR:	37190

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
2018-04-21 00:34:46 +00:00
..
docs Merge LLDB 3.8 2016-01-04 01:16:32 +00:00
include/lldb For our lldb customizations, instead of commenting out lines, use #ifdef 2017-12-24 13:39:32 +00:00
source lldb: propagate error to user if memory read fails 2018-04-21 00:34:46 +00:00
tools Merge lldb trunk r321414 to contrib/llvm/tools/lldb. 2017-12-24 01:12:46 +00:00
FREEBSD-Xlist Update lldb to upstream trunk r242221. 2015-09-06 15:21:47 +00:00
LICENSE.TXT