Watchpoints remember the type of the expression or variable they were set with, and use
it to print the old and new values. Temporarily disable the "out of scope" checking since it didn't work correctly, and was not what people generally expected watchpoints to be doing. llvm-svn: 166472
This commit is contained in:
@@ -1930,7 +1930,8 @@ SBValue::Watch (bool resolve_location, bool read, bool write, SBError &error)
|
||||
watch_type |= LLDB_WATCH_TYPE_WRITE;
|
||||
|
||||
Error rc;
|
||||
WatchpointSP watchpoint_sp = target_sp->CreateWatchpoint(addr, byte_size, watch_type, rc);
|
||||
ClangASTType type (value_sp->GetClangAST(), value_sp->GetClangType());
|
||||
WatchpointSP watchpoint_sp = target_sp->CreateWatchpoint(addr, byte_size, &type, watch_type, rc);
|
||||
error.SetError(rc);
|
||||
|
||||
if (watchpoint_sp)
|
||||
|
||||
Reference in New Issue
Block a user