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:
Jim Ingham
2012-10-23 07:20:06 +00:00
parent 0a08aa91d5
commit a7dfb665e3
12 changed files with 109 additions and 200 deletions

View File

@@ -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)