diff options
author | Tamas Berghammer <tberghammer@google.com> | 2015-10-13 16:48:04 +0000 |
---|---|---|
committer | Tamas Berghammer <tberghammer@google.com> | 2015-10-13 16:48:04 +0000 |
commit | 1fa5c4b944c0969bc409705678a9bcc2f7de2c7c (patch) | |
tree | f5b70c655e3d2491dddcc3b8fdc1edc79a3a3e94 /lldb/source/Plugins | |
parent | 1e2f062ec58b8bd01a054521367e0e4ad6a2f686 (diff) | |
download | bcm5719-llvm-1fa5c4b944c0969bc409705678a9bcc2f7de2c7c.tar.gz bcm5719-llvm-1fa5c4b944c0969bc409705678a9bcc2f7de2c7c.zip |
Fix cast in arm watchpoint handling code
We had an incorrect sign extension when castion from a pointer to an
lldb::addr_t what broke the watchpoint hit detection on arm.
llvm-svn: 250180
Diffstat (limited to 'lldb/source/Plugins')
-rw-r--r-- | lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp index dfc92887fa8..284dbeebbab 100644 --- a/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp +++ b/lldb/source/Plugins/Process/Linux/NativeProcessLinux.cpp @@ -1282,7 +1282,7 @@ NativeProcessLinux::MonitorSIGTRAP(const siginfo_t &info, NativeThreadLinux &thr { // If a watchpoint was hit, report it uint32_t wp_index; - Error error = thread.GetRegisterContext()->GetWatchpointHitIndex(wp_index, (lldb::addr_t)info.si_addr); + Error error = thread.GetRegisterContext()->GetWatchpointHitIndex(wp_index, (uintptr_t)info.si_addr); if (error.Fail() && log) log->Printf("NativeProcessLinux::%s() " "received error while checking for watchpoint hits, " |