Johnny Chen | 3cfd5e8 | 2011-07-18 21:30:21 +0000 | [diff] [blame] | 1 | //===-- SWIG Interface for SBBreakpointLocation -----------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | namespace lldb { |
| 11 | |
| 12 | %feature("docstring", |
| 13 | "Represents one unique instance (by address) of a logical breakpoint. |
| 14 | |
| 15 | A breakpoint location is defined by the breakpoint that produces it, |
| 16 | and the address that resulted in this particular instantiation. |
| 17 | Each breakpoint location has its settable options. |
| 18 | |
| 19 | SBBreakpoint contains SBBreakpointLocation(s). See docstring of SBBreakpoint |
| 20 | for retrieval of an SBBreakpointLocation from an SBBreakpoint." |
| 21 | ) SBBreakpointLocation; |
| 22 | class SBBreakpointLocation |
| 23 | { |
| 24 | public: |
| 25 | |
| 26 | SBBreakpointLocation (); |
| 27 | |
| 28 | SBBreakpointLocation (const lldb::SBBreakpointLocation &rhs); |
| 29 | |
| 30 | ~SBBreakpointLocation (); |
| 31 | |
| 32 | bool |
| 33 | IsValid() const; |
| 34 | |
Jim Ingham | 0e6d511 | 2011-10-07 22:27:25 +0000 | [diff] [blame] | 35 | lldb::SBAddress |
| 36 | GetAddress(); |
| 37 | |
Johnny Chen | 3cfd5e8 | 2011-07-18 21:30:21 +0000 | [diff] [blame] | 38 | lldb::addr_t |
| 39 | GetLoadAddress (); |
| 40 | |
| 41 | void |
| 42 | SetEnabled(bool enabled); |
| 43 | |
| 44 | bool |
| 45 | IsEnabled (); |
| 46 | |
| 47 | uint32_t |
| 48 | GetIgnoreCount (); |
| 49 | |
| 50 | void |
| 51 | SetIgnoreCount (uint32_t n); |
| 52 | |
Johnny Chen | a5dd2bb | 2011-10-18 19:13:06 +0000 | [diff] [blame^] | 53 | %feature("docstring", " |
| 54 | //-------------------------------------------------------------------------- |
| 55 | /// The breakpoint location stops only if the condition expression evaluates |
| 56 | /// to true. |
| 57 | //-------------------------------------------------------------------------- |
| 58 | ") SetCondition; |
Johnny Chen | 3cfd5e8 | 2011-07-18 21:30:21 +0000 | [diff] [blame] | 59 | void |
| 60 | SetCondition (const char *condition); |
| 61 | |
Johnny Chen | a5dd2bb | 2011-10-18 19:13:06 +0000 | [diff] [blame^] | 62 | %feature("docstring", " |
| 63 | //------------------------------------------------------------------ |
| 64 | /// Get the condition expression for the breakpoint location. |
| 65 | //------------------------------------------------------------------ |
| 66 | ") GetCondition; |
Johnny Chen | 3cfd5e8 | 2011-07-18 21:30:21 +0000 | [diff] [blame] | 67 | const char * |
| 68 | GetCondition (); |
| 69 | |
| 70 | void |
| 71 | SetThreadID (lldb::tid_t sb_thread_id); |
| 72 | |
| 73 | lldb::tid_t |
| 74 | GetThreadID (); |
| 75 | |
| 76 | void |
| 77 | SetThreadIndex (uint32_t index); |
| 78 | |
| 79 | uint32_t |
| 80 | GetThreadIndex() const; |
| 81 | |
| 82 | void |
| 83 | SetThreadName (const char *thread_name); |
| 84 | |
| 85 | const char * |
| 86 | GetThreadName () const; |
| 87 | |
| 88 | void |
| 89 | SetQueueName (const char *queue_name); |
| 90 | |
| 91 | const char * |
| 92 | GetQueueName () const; |
| 93 | |
| 94 | bool |
| 95 | IsResolved (); |
| 96 | |
| 97 | bool |
| 98 | GetDescription (lldb::SBStream &description, DescriptionLevel level); |
| 99 | |
| 100 | SBBreakpoint |
| 101 | GetBreakpoint (); |
| 102 | }; |
| 103 | |
| 104 | } // namespace lldb |