diff options
author | Jim Ingham <jingham@apple.com> | 2012-10-23 07:20:06 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-10-23 07:20:06 +0000 |
commit | a7dfb665e31dfcaba37c0680c5057ae478fbdca2 (patch) | |
tree | 92dddd6d1e2ee021262a14463d18fdc8d730b891 /lldb/source/API/SBTarget.cpp | |
parent | 0a08aa91d50a70185e0912e39ebfbde7da632f43 (diff) | |
download | bcm5719-llvm-a7dfb665e31dfcaba37c0680c5057ae478fbdca2.tar.gz bcm5719-llvm-a7dfb665e31dfcaba37c0680c5057ae478fbdca2.zip |
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
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r-- | lldb/source/API/SBTarget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 569e6fe2c4f..071c4b5a983 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -1783,7 +1783,9 @@ SBTarget::WatchAddress (lldb::addr_t addr, size_t size, bool read, bool write, S watch_type |= LLDB_WATCH_TYPE_WRITE; // Target::CreateWatchpoint() is thread safe. Error cw_error; - watchpoint_sp = target_sp->CreateWatchpoint(addr, size, watch_type, cw_error); + // This API doesn't take in a type, so we can't figure out what it is. + ClangASTType *type = NULL; + watchpoint_sp = target_sp->CreateWatchpoint(addr, size, type, watch_type, cw_error); error.SetError(cw_error); sb_watchpoint.SetSP (watchpoint_sp); } |