diff options
author | Greg Clayton <gclayton@apple.com> | 2013-10-11 19:48:25 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-10-11 19:48:25 +0000 |
commit | eb023e75dc9d0bbc0d88ba1379e449570b8678fa (patch) | |
tree | 08065fe5bdc77f6e8a657a579c3481c428d0393f /lldb/source/Breakpoint/BreakpointLocationList.cpp | |
parent | 877615ccfdaadc154420dcc5a2939c56bf5fa4aa (diff) | |
download | bcm5719-llvm-eb023e75dc9d0bbc0d88ba1379e449570b8678fa.tar.gz bcm5719-llvm-eb023e75dc9d0bbc0d88ba1379e449570b8678fa.zip |
<rdar://problem/13635174>
Added a way to set hardware breakpoints from the "breakpoint set" command with the new "--hardware" option. Hardware breakpoints are not a request, they currently are a requirement. So when breakpoints are specified as hardware breakpoints, they might fail to be set when they are able to be resolved and should be used sparingly. This is currently hooked up for GDB remote debugging.
Linux and FreeBSD should quickly enable this feature if possible, or return an error for any breakpoints that are hardware breakpoint sites in the "virtual Error Process::EnableBreakpointSite (BreakpointSite *bp_site);" function.
llvm-svn: 192491
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointLocationList.cpp')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointLocationList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Breakpoint/BreakpointLocationList.cpp b/lldb/source/Breakpoint/BreakpointLocationList.cpp index 22a4ff0c68e..341b0971630 100644 --- a/lldb/source/Breakpoint/BreakpointLocationList.cpp +++ b/lldb/source/Breakpoint/BreakpointLocationList.cpp @@ -41,7 +41,7 @@ BreakpointLocationList::Create (const Address &addr) Mutex::Locker locker (m_mutex); // The location ID is just the size of the location list + 1 lldb::break_id_t bp_loc_id = ++m_next_id; - BreakpointLocationSP bp_loc_sp (new BreakpointLocation (bp_loc_id, m_owner, addr)); + BreakpointLocationSP bp_loc_sp (new BreakpointLocation (bp_loc_id, m_owner, addr, LLDB_INVALID_THREAD_ID, m_owner.IsHardware())); m_locations.push_back (bp_loc_sp); m_address_to_location[addr] = bp_loc_sp; return bp_loc_sp; |