Consider a vector variable 'v8i16 s0'
Right now if we print value of s0, it gives us proper value:
(lldb) print s0
(v8i16) $0 = (member 1, member 2, ........,member 8)
But if we try to set a watchpoint on it, it shows null for its value:
(lldb) watchpoint set variable s0
Watchpoint created: Watchpoint 1: addr = <addr> size = 16 state = enabled type = w
declare @ 'file_name:line_no' watchpoint spec = 's0' new value: (null)
Approach used in patch is already used in in function ValueObjectPrinter::GetValueSummaryError,
which is called for command 'print s0'.