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
..
2018-04-14 21:54:22 +00:00
2018-03-02 01:53:50 +00:00
2017-09-17 19:14:38 +00:00
2018-02-19 05:10:22 +00:00
2018-01-24 14:24:17 +00:00
2017-07-03 19:49:25 +00:00
2017-08-03 15:47:42 +00:00
2018-03-02 23:31:55 +00:00
2018-02-28 07:59:55 +00:00
2018-01-28 03:16:54 +00:00
2017-06-28 09:22:45 +00:00
2017-12-06 02:21:11 +00:00
2018-04-18 13:17:14 +00:00
2018-03-24 04:52:29 +00:00
2017-09-10 01:25:15 +00:00