diff options
author | Jim Ingham <jingham@apple.com> | 2014-03-07 11:18:02 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2014-03-07 11:18:02 +0000 |
commit | a04ef756d46ea03d0e70fe092b1162a2903a9990 (patch) | |
tree | b81a4eef3c1264106dd42c3badc8f4f3148e0e2e /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 0ff099f10c52270feac74c54aa250218854bbe42 (diff) | |
download | bcm5719-llvm-a04ef756d46ea03d0e70fe092b1162a2903a9990.tar.gz bcm5719-llvm-a04ef756d46ea03d0e70fe092b1162a2903a9990.zip |
If you are disabling a hardware breakpoint, use z1 not z0.
<rdar://problem/16256532>
llvm-svn: 203232
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 604906e2a85..b26c4cbb1d9 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -2440,8 +2440,16 @@ ProcessGDBRemote::DisableBreakpointSite (BreakpointSite *bp_site) break; case BreakpointSite::eExternal: - if (m_gdb_comm.SendGDBStoppointTypePacket(eBreakpointSoftware, false, addr, bp_op_size)) + { + GDBStoppointType stoppoint_type; + if (bp_site->IsHardware()) + stoppoint_type = eBreakpointHardware; + else + stoppoint_type = eBreakpointSoftware; + + if (m_gdb_comm.SendGDBStoppointTypePacket(stoppoint_type, false, addr, bp_op_size)) error.SetErrorToGenericError(); + } break; } if (error.Success()) |