003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lldb/include/lldb/Breakpoint
usr
/
src
/
contrib
/
llvm-project
/
lldb
/
include
/
lldb
/
Breakpoint
/
📁
..
📄
Breakpoint.h
(24.45 KB)
📄
BreakpointID.h
(3.22 KB)
📄
BreakpointIDList.h
(2.34 KB)
📄
BreakpointList.h
(5.6 KB)
📄
BreakpointLocation.h
(11.94 KB)
📄
BreakpointLocationCollection.h
(5.67 KB)
📄
BreakpointLocationList.h
(7.13 KB)
📄
BreakpointName.h
(6.13 KB)
📄
BreakpointOptions.h
(13.73 KB)
📄
BreakpointPrecondition.h
(931 B)
📄
BreakpointResolver.h
(8.49 KB)
📄
BreakpointResolverAddress.h
(3.11 KB)
📄
BreakpointResolverFileLine.h
(2.94 KB)
📄
BreakpointResolverFileRegex.h
(2.9 KB)
📄
BreakpointResolverName.h
(3.69 KB)
📄
BreakpointResolverScripted.h
(2.94 KB)
📄
BreakpointSite.h
(8.58 KB)
📄
BreakpointSiteList.h
(5.44 KB)
📄
Stoppoint.h
(1.05 KB)
📄
StoppointCallbackContext.h
(1.82 KB)
📄
StoppointLocation.h
(2.96 KB)
📄
Watchpoint.h
(7.53 KB)
📄
WatchpointList.h
(6.13 KB)
📄
WatchpointOptions.h
(7.04 KB)
Editing: BreakpointLocationCollection.h
//===-- BreakpointLocationCollection.h --------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLDB_BREAKPOINT_BREAKPOINTLOCATIONCOLLECTION_H #define LLDB_BREAKPOINT_BREAKPOINTLOCATIONCOLLECTION_H #include <mutex> #include <vector> #include "lldb/Utility/Iterable.h" #include "lldb/lldb-private.h" namespace lldb_private { class BreakpointLocationCollection { public: BreakpointLocationCollection(); ~BreakpointLocationCollection(); BreakpointLocationCollection &operator=(const BreakpointLocationCollection &rhs); /// Add the breakpoint \a bp_loc_sp to the list. /// /// \param[in] bp_loc_sp /// Shared pointer to the breakpoint location that will get added /// to the list. void Add(const lldb::BreakpointLocationSP &bp_loc_sp); /// Removes the breakpoint location given by \b breakID from this /// list. /// /// \param[in] break_id /// The breakpoint index to remove. /// /// \param[in] break_loc_id /// The breakpoint location index in break_id to remove. /// /// \result /// \b true if the breakpoint was in the list. bool Remove(lldb::break_id_t break_id, lldb::break_id_t break_loc_id); /// Returns a shared pointer to the breakpoint location with id \a /// breakID. /// /// \param[in] break_id /// The breakpoint ID to seek for. /// /// \param[in] break_loc_id /// The breakpoint location ID in \a break_id to seek for. /// /// \result /// A shared pointer to the breakpoint. May contain a NULL /// pointer if the breakpoint doesn't exist. lldb::BreakpointLocationSP FindByIDPair(lldb::break_id_t break_id, lldb::break_id_t break_loc_id); /// Returns a shared pointer to the breakpoint location with id \a /// breakID, const version. /// /// \param[in] break_id /// The breakpoint location ID to seek for. /// /// \param[in] break_loc_id /// The breakpoint location ID in \a break_id to seek for. /// /// \result /// A shared pointer to the breakpoint. May contain a NULL /// pointer if the breakpoint doesn't exist. const lldb::BreakpointLocationSP FindByIDPair(lldb::break_id_t break_id, lldb::break_id_t break_loc_id) const; /// Returns a shared pointer to the breakpoint location with index /// \a i. /// /// \param[in] i /// The breakpoint location index to seek for. /// /// \result /// A shared pointer to the breakpoint. May contain a NULL /// pointer if the breakpoint doesn't exist. lldb::BreakpointLocationSP GetByIndex(size_t i); /// Returns a shared pointer to the breakpoint location with index /// \a i, const version. /// /// \param[in] i /// The breakpoint location index to seek for. /// /// \result /// A shared pointer to the breakpoint. May contain a NULL /// pointer if the breakpoint doesn't exist. const lldb::BreakpointLocationSP GetByIndex(size_t i) const; /// Returns the number of elements in this breakpoint location list. /// /// \result /// The number of elements. size_t GetSize() const { return m_break_loc_collection.size(); } /// Enquires of all the breakpoint locations in this list whether /// we should stop at a hit at \a breakID. /// /// \param[in] context /// This contains the information about this stop. /// /// \return /// \b true if we should stop, \b false otherwise. bool ShouldStop(StoppointCallbackContext *context); /// Print a description of the breakpoint locations in this list /// to the stream \a s. /// /// \param[in] s /// The stream to which to print the description. /// /// \param[in] level /// The description level that indicates the detail level to /// provide. /// /// \see lldb::DescriptionLevel void GetDescription(Stream *s, lldb::DescriptionLevel level); /// Check whether this collection of breakpoint locations have any /// thread specifiers, and if yes, is \a thread_id contained in any /// of these specifiers. /// /// \param[in] thread /// The thread against which to test. /// /// return /// \b true if the collection contains at least one location that /// would be valid for this thread, false otherwise. bool ValidForThisThread(Thread *thread); /// Tell whether ALL the breakpoints in the location collection are internal. /// /// \result /// \b true if all breakpoint locations are owned by internal breakpoints, /// \b false otherwise. bool IsInternal() const; protected: // Classes that inherit from BreakpointLocationCollection can see and modify // these private: // For BreakpointLocationCollection only typedef std::vector<lldb::BreakpointLocationSP> collection; collection::iterator GetIDPairIterator(lldb::break_id_t break_id, lldb::break_id_t break_loc_id); collection::const_iterator GetIDPairConstIterator(lldb::break_id_t break_id, lldb::break_id_t break_loc_id) const; collection m_break_loc_collection; mutable std::mutex m_collection_mutex; public: typedef AdaptedIterable<collection, lldb::BreakpointLocationSP, vector_adapter> BreakpointLocationCollectionIterable; BreakpointLocationCollectionIterable BreakpointLocations() { return BreakpointLocationCollectionIterable(m_break_loc_collection); } }; } // namespace lldb_private #endif // LLDB_BREAKPOINT_BREAKPOINTLOCATIONCOLLECTION_H
Upload File
Create Folder