[PATCH] D49379: lldbsuite: ignore decoding errors in _encoded_write

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 17 08:16:06 PDT 2018


labath added a comment.

In https://reviews.llvm.org/D49379#1165123, @kbaladurin wrote:

> Also I think we can report about decoding errors like gdb does:
>
>   Thread 3 "a.out" hit Breakpoint 1, do_bad_thing_with_location (char_ptr=0x619c20 "\001$\255", <incomplete sequence \373>, new_val=1 '\001') at main.cpp:40
>   40	}
>   (gdb) x/10xb char_ptr
>   0x619c20:	0x01	0x24	0xad	0xfb	0x00	0x00	0x00	0x00
>   0x619c28:	0x00	0x00
>


That's a great idea !


https://reviews.llvm.org/D49379





More information about the llvm-commits mailing list