LLDB
mainline
llvm-project
lldb
source
Breakpoint
StopPointSiteList.cpp
Go to the documentation of this file.
1
//===-- StopPointSiteList.cpp ---------------------------------------------===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
9
#include "
lldb/Breakpoint/StopPointSiteList.h
"
10
#include "
lldb/Breakpoint/BreakpointSite.h
"
11
#include "
lldb/Breakpoint/WatchpointResource.h
"
12
13
#include "
lldb/Utility/Stream.h
"
14
#include <algorithm>
15
16
using namespace
lldb
;
17
using namespace
lldb_private
;
18
19
// This method is only defined when we're specializing for
20
// BreakpointSite / BreakpointLocation / Breakpoint.
21
// Watchpoints don't have a similar structure, they are
22
// WatchpointResource / Watchpoint
23
24
template
<>
25
bool
StopPointSiteList<BreakpointSite>::StopPointSiteContainsBreakpoint
(
26
typename
BreakpointSite::SiteID
site_id,
lldb::break_id_t
bp_id) {
27
std::lock_guard<std::recursive_mutex> guard(m_mutex);
28
typename
collection::const_iterator pos = GetIDConstIterator(site_id);
29
if
(pos != m_site_list.end())
30
return
pos->second->IsBreakpointAtThisSite(bp_id);
31
32
return
false
;
33
}
34
35
namespace
lldb_private
{
36
template
class
StopPointSiteList<BreakpointSite>
;
37
}
// namespace lldb_private
BreakpointSite.h
StopPointSiteList.h
Stream.h
WatchpointResource.h
lldb_private::BreakpointSite::SiteID
lldb::break_id_t SiteID
Definition:
BreakpointSite.h:48
lldb_private::StopPointSiteList
Definition:
StopPointSiteList.h:22
lldb_private::StopPointSiteList::StopPointSiteContainsBreakpoint
bool StopPointSiteContainsBreakpoint(typename StopPointSite::SiteID, lldb::break_id_t bp_id)
Returns whether the BreakpointSite site_id has a BreakpointLocation that is part of Breakpoint bp_id.
lldb_private
A class that represents a running process on the host machine.
Definition:
SBAddressRange.h:14
lldb
Definition:
SBAddress.h:15
lldb::break_id_t
int32_t break_id_t
Definition:
lldb-types.h:86
Generated on Sat Dec 21 2024 14:48:30 for LLDB by
1.9.6