Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 1 | //===-- SWIG Interface for SBProcess ----------------------------*- 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 the process associated with the target program. |
| 14 | |
| 15 | SBProcess supports thread iteration. For example (from test/lldbutil.py), |
| 16 | |
| 17 | # ================================================== |
| 18 | # Utility functions related to Threads and Processes |
| 19 | # ================================================== |
| 20 | |
| 21 | def get_stopped_threads(process, reason): |
| 22 | '''Returns the thread(s) with the specified stop reason in a list. |
| 23 | |
| 24 | The list can be empty if no such thread exists. |
| 25 | ''' |
| 26 | threads = [] |
| 27 | for t in process: |
| 28 | if t.GetStopReason() == reason: |
| 29 | threads.append(t) |
| 30 | return threads |
| 31 | |
| 32 | ... |
| 33 | " |
| 34 | ) SBProcess; |
| 35 | class SBProcess |
| 36 | { |
| 37 | public: |
| 38 | //------------------------------------------------------------------ |
| 39 | /// Broadcaster event bits definitions. |
| 40 | //------------------------------------------------------------------ |
| 41 | enum |
| 42 | { |
| 43 | eBroadcastBitStateChanged = (1 << 0), |
| 44 | eBroadcastBitInterrupt = (1 << 1), |
| 45 | eBroadcastBitSTDOUT = (1 << 2), |
| 46 | eBroadcastBitSTDERR = (1 << 3) |
| 47 | }; |
| 48 | |
| 49 | SBProcess (); |
| 50 | |
| 51 | SBProcess (const lldb::SBProcess& rhs); |
| 52 | |
| 53 | ~SBProcess(); |
| 54 | |
Jim Ingham | 5a15e69 | 2012-02-16 06:50:00 +0000 | [diff] [blame] | 55 | static const char * |
| 56 | GetBroadcasterClassName (); |
| 57 | |
Jim Ingham | fee26ee | 2012-10-26 19:18:04 +0000 | [diff] [blame^] | 58 | const char * |
| 59 | GetPluginName (); |
| 60 | |
| 61 | const char * |
| 62 | GetShortPluginName (); |
| 63 | |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 64 | void |
| 65 | Clear (); |
| 66 | |
| 67 | bool |
| 68 | IsValid() const; |
| 69 | |
| 70 | lldb::SBTarget |
| 71 | GetTarget() const; |
| 72 | |
| 73 | lldb::ByteOrder |
| 74 | GetByteOrder() const; |
| 75 | |
Johnny Chen | 23038b6 | 2011-11-28 21:39:07 +0000 | [diff] [blame] | 76 | %feature("autodoc", " |
| 77 | Writes data into the current process's stdin. API client specifies a Python |
| 78 | string as the only argument. |
| 79 | ") PutSTDIN; |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 80 | size_t |
| 81 | PutSTDIN (const char *src, size_t src_len); |
| 82 | |
Johnny Chen | 609b9ce | 2011-11-28 19:12:25 +0000 | [diff] [blame] | 83 | %feature("autodoc", " |
| 84 | Reads data from the current process's stdout stream. API client specifies |
| 85 | the size of the buffer to read data into. It returns the byte buffer in a |
| 86 | Python string. |
| 87 | ") GetSTDOUT; |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 88 | size_t |
| 89 | GetSTDOUT (char *dst, size_t dst_len) const; |
| 90 | |
Johnny Chen | 609b9ce | 2011-11-28 19:12:25 +0000 | [diff] [blame] | 91 | %feature("autodoc", " |
| 92 | Reads data from the current process's stderr stream. API client specifies |
| 93 | the size of the buffer to read data into. It returns the byte buffer in a |
| 94 | Python string. |
| 95 | ") GetSTDERR; |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 96 | size_t |
| 97 | GetSTDERR (char *dst, size_t dst_len) const; |
| 98 | |
| 99 | void |
| 100 | ReportEventState (const lldb::SBEvent &event, FILE *out) const; |
| 101 | |
| 102 | void |
| 103 | AppendEventStateReport (const lldb::SBEvent &event, lldb::SBCommandReturnObject &result); |
| 104 | |
| 105 | %feature("docstring", " |
| 106 | //------------------------------------------------------------------ |
| 107 | /// Remote connection related functions. These will fail if the |
| 108 | /// process is not in eStateConnected. They are intended for use |
| 109 | /// when connecting to an externally managed debugserver instance. |
| 110 | //------------------------------------------------------------------ |
| 111 | ") RemoteAttachToProcessWithID; |
| 112 | bool |
| 113 | RemoteAttachToProcessWithID (lldb::pid_t pid, |
| 114 | lldb::SBError& error); |
| 115 | |
| 116 | %feature("docstring", |
| 117 | "See SBTarget.Launch for argument description and usage." |
| 118 | ) RemoteLaunch; |
| 119 | bool |
| 120 | RemoteLaunch (char const **argv, |
| 121 | char const **envp, |
| 122 | const char *stdin_path, |
| 123 | const char *stdout_path, |
| 124 | const char *stderr_path, |
| 125 | const char *working_directory, |
| 126 | uint32_t launch_flags, |
| 127 | bool stop_at_entry, |
| 128 | lldb::SBError& error); |
| 129 | |
| 130 | //------------------------------------------------------------------ |
| 131 | // Thread related functions |
| 132 | //------------------------------------------------------------------ |
| 133 | uint32_t |
| 134 | GetNumThreads (); |
| 135 | |
Jim Ingham | efbdd22 | 2012-07-13 20:18:18 +0000 | [diff] [blame] | 136 | %feature("autodoc", " |
| 137 | Returns the INDEX'th thread from the list of current threads. The index |
| 138 | of a thread is only valid for the current stop. For a persistent thread |
| 139 | identifier use either the thread ID or the IndexID. See help on SBThread |
| 140 | for more details. |
| 141 | ") GetThreadAtIndex; |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 142 | lldb::SBThread |
| 143 | GetThreadAtIndex (size_t index); |
| 144 | |
Jim Ingham | efbdd22 | 2012-07-13 20:18:18 +0000 | [diff] [blame] | 145 | %feature("autodoc", " |
| 146 | Returns the thread with the given thread ID. |
| 147 | ") GetThreadByID; |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 148 | lldb::SBThread |
| 149 | GetThreadByID (lldb::tid_t sb_thread_id); |
Jim Ingham | efbdd22 | 2012-07-13 20:18:18 +0000 | [diff] [blame] | 150 | |
| 151 | %feature("autodoc", " |
| 152 | Returns the thread with the given thread IndexID. |
| 153 | ") GetThreadByIndexID; |
| 154 | lldb::SBThread |
| 155 | GetThreadByIndexID (uint32_t index_id); |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 156 | |
Jim Ingham | efbdd22 | 2012-07-13 20:18:18 +0000 | [diff] [blame] | 157 | %feature("autodoc", " |
| 158 | Returns the currently selected thread. |
| 159 | ") GetSelectedThread; |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 160 | lldb::SBThread |
| 161 | GetSelectedThread () const; |
| 162 | |
| 163 | bool |
| 164 | SetSelectedThread (const lldb::SBThread &thread); |
| 165 | |
| 166 | bool |
Greg Clayton | 82560f2 | 2012-10-12 23:32:11 +0000 | [diff] [blame] | 167 | SetSelectedThreadByID (lldb::tid_t tid); |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 168 | |
Jim Ingham | efbdd22 | 2012-07-13 20:18:18 +0000 | [diff] [blame] | 169 | bool |
| 170 | SetSelectedThreadByIndexID (uint32_t index_id); |
| 171 | |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 172 | //------------------------------------------------------------------ |
| 173 | // Stepping related functions |
| 174 | //------------------------------------------------------------------ |
| 175 | |
| 176 | lldb::StateType |
| 177 | GetState (); |
| 178 | |
| 179 | int |
| 180 | GetExitStatus (); |
| 181 | |
| 182 | const char * |
| 183 | GetExitDescription (); |
| 184 | |
| 185 | lldb::pid_t |
| 186 | GetProcessID (); |
| 187 | |
| 188 | uint32_t |
| 189 | GetAddressByteSize() const; |
| 190 | |
| 191 | %feature("docstring", " |
| 192 | Kills the process and shuts down all threads that were spawned to |
| 193 | track and monitor process. |
| 194 | ") Destroy; |
| 195 | lldb::SBError |
| 196 | Destroy (); |
| 197 | |
| 198 | lldb::SBError |
| 199 | Continue (); |
| 200 | |
| 201 | lldb::SBError |
| 202 | Stop (); |
| 203 | |
| 204 | %feature("docstring", "Same as Destroy(self).") Destroy; |
| 205 | lldb::SBError |
| 206 | Kill (); |
| 207 | |
| 208 | lldb::SBError |
| 209 | Detach (); |
| 210 | |
| 211 | %feature("docstring", "Sends the process a unix signal.") Signal; |
| 212 | lldb::SBError |
| 213 | Signal (int signal); |
| 214 | |
Jim Ingham | 5d90ade | 2012-07-27 23:57:19 +0000 | [diff] [blame] | 215 | void |
| 216 | SendAsyncInterrupt(); |
| 217 | |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 218 | %feature("autodoc", " |
| 219 | Reads memory from the current process's address space and removes any |
| 220 | traps that may have been inserted into the memory. It returns the byte |
| 221 | buffer in a Python string. Example: |
| 222 | |
| 223 | # Read 4 bytes from address 'addr' and assume error.Success() is True. |
| 224 | content = process.ReadMemory(addr, 4, error) |
| 225 | # Use 'ascii' encoding as each byte of 'content' is within [0..255]. |
| 226 | new_bytes = bytearray(content, 'ascii') |
| 227 | ") ReadMemory; |
| 228 | size_t |
| 229 | ReadMemory (addr_t addr, void *buf, size_t size, lldb::SBError &error); |
| 230 | |
| 231 | %feature("autodoc", " |
| 232 | Writes memory to the current process's address space and maintains any |
| 233 | traps that might be present due to software breakpoints. Example: |
| 234 | |
| 235 | # Create a Python string from the byte array. |
| 236 | new_value = str(bytes) |
| 237 | result = process.WriteMemory(addr, new_value, error) |
| 238 | if not error.Success() or result != len(bytes): |
| 239 | print 'SBProcess.WriteMemory() failed!' |
| 240 | ") WriteMemory; |
| 241 | size_t |
| 242 | WriteMemory (addr_t addr, const void *buf, size_t size, lldb::SBError &error); |
| 243 | |
Greg Clayton | 4a2e337 | 2011-12-15 03:14:23 +0000 | [diff] [blame] | 244 | %feature("autodoc", " |
| 245 | Reads a NULL terminated C string from the current process's address space. |
| 246 | It returns a python string of the exact length, or truncates the string if |
| 247 | the maximum character limit is reached. Example: |
| 248 | |
| 249 | # Read a C string of at most 256 bytes from address '0x1000' |
| 250 | error = lldb.SBError() |
Johnny Chen | 0841386 | 2011-12-15 22:34:59 +0000 | [diff] [blame] | 251 | cstring = process.ReadCStringFromMemory(0x1000, 256, error) |
Greg Clayton | 4a2e337 | 2011-12-15 03:14:23 +0000 | [diff] [blame] | 252 | if error.Success(): |
| 253 | print 'cstring: ', cstring |
| 254 | else |
| 255 | print 'error: ', error |
| 256 | ") ReadCStringFromMemory; |
| 257 | |
| 258 | size_t |
| 259 | ReadCStringFromMemory (addr_t addr, void *buf, size_t size, lldb::SBError &error); |
| 260 | |
| 261 | %feature("autodoc", " |
| 262 | Reads an unsigned integer from memory given a byte size and an address. |
| 263 | Returns the unsigned integer that was read. Example: |
| 264 | |
| 265 | # Read a 4 byte unsigned integer from address 0x1000 |
| 266 | error = lldb.SBError() |
| 267 | uint = ReadUnsignedFromMemory(0x1000, 4, error) |
| 268 | if error.Success(): |
| 269 | print 'integer: %u' % uint |
| 270 | else |
| 271 | print 'error: ', error |
| 272 | |
| 273 | ") ReadUnsignedFromMemory; |
| 274 | |
| 275 | uint64_t |
| 276 | ReadUnsignedFromMemory (addr_t addr, uint32_t byte_size, lldb::SBError &error); |
| 277 | |
| 278 | %feature("autodoc", " |
| 279 | Reads a pointer from memory from an address and returns the value. Example: |
| 280 | |
| 281 | # Read a pointer from address 0x1000 |
| 282 | error = lldb.SBError() |
| 283 | ptr = ReadPointerFromMemory(0x1000, error) |
| 284 | if error.Success(): |
| 285 | print 'pointer: 0x%x' % ptr |
| 286 | else |
| 287 | print 'error: ', error |
| 288 | |
| 289 | ") ReadPointerFromMemory; |
| 290 | |
| 291 | lldb::addr_t |
| 292 | ReadPointerFromMemory (addr_t addr, lldb::SBError &error); |
| 293 | |
| 294 | |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 295 | // Events |
| 296 | static lldb::StateType |
| 297 | GetStateFromEvent (const lldb::SBEvent &event); |
| 298 | |
| 299 | static bool |
| 300 | GetRestartedFromEvent (const lldb::SBEvent &event); |
| 301 | |
| 302 | static lldb::SBProcess |
| 303 | GetProcessFromEvent (const lldb::SBEvent &event); |
| 304 | |
Jim Ingham | 28e2386 | 2012-02-08 05:23:15 +0000 | [diff] [blame] | 305 | static bool |
| 306 | EventIsProcessEvent (const lldb::SBEvent &event); |
| 307 | |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 308 | lldb::SBBroadcaster |
| 309 | GetBroadcaster () const; |
| 310 | |
| 311 | bool |
| 312 | GetDescription (lldb::SBStream &description); |
| 313 | |
| 314 | uint32_t |
Johnny Chen | 191343e | 2012-05-23 22:34:34 +0000 | [diff] [blame] | 315 | GetNumSupportedHardwareWatchpoints (lldb::SBError &error) const; |
| 316 | |
| 317 | uint32_t |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 318 | LoadImage (lldb::SBFileSpec &image_spec, lldb::SBError &error); |
| 319 | |
| 320 | lldb::SBError |
| 321 | UnloadImage (uint32_t image_token); |
Johnny Chen | 9f074f0 | 2012-01-06 00:46:12 +0000 | [diff] [blame] | 322 | |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 323 | %pythoncode %{ |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 324 | def __get_is_alive__(self): |
| 325 | '''Returns "True" if the process is currently alive, "False" otherwise''' |
| 326 | s = self.GetState() |
| 327 | if (s == eStateAttaching or |
| 328 | s == eStateLaunching or |
| 329 | s == eStateStopped or |
| 330 | s == eStateRunning or |
| 331 | s == eStateStepping or |
| 332 | s == eStateCrashed or |
| 333 | s == eStateSuspended): |
| 334 | return True |
| 335 | return False |
| 336 | |
| 337 | def __get_is_running__(self): |
| 338 | '''Returns "True" if the process is currently running, "False" otherwise''' |
| 339 | state = self.GetState() |
| 340 | if state == eStateRunning or state == eStateStepping: |
| 341 | return True |
| 342 | return False |
| 343 | |
| 344 | def __get_is_running__(self): |
| 345 | '''Returns "True" if the process is currently stopped, "False" otherwise''' |
| 346 | state = self.GetState() |
| 347 | if state == eStateStopped or state == eStateCrashed or state == eStateSuspended: |
| 348 | return True |
| 349 | return False |
| 350 | |
Greg Clayton | b6a5ba6 | 2012-02-03 03:22:53 +0000 | [diff] [blame] | 351 | class threads_access(object): |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 352 | '''A helper object that will lazily hand out thread for a process when supplied an index.''' |
| 353 | def __init__(self, sbprocess): |
| 354 | self.sbprocess = sbprocess |
| 355 | |
| 356 | def __len__(self): |
Filipe Cabecinhas | 3cae38b | 2012-05-11 20:39:42 +0000 | [diff] [blame] | 357 | if self.sbprocess: |
| 358 | return int(self.sbprocess.GetNumThreads()) |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 359 | return 0 |
| 360 | |
| 361 | def __getitem__(self, key): |
| 362 | if type(key) is int and key < len(self): |
| 363 | return self.sbprocess.GetThreadAtIndex(key) |
| 364 | return None |
| 365 | |
Greg Clayton | b6a5ba6 | 2012-02-03 03:22:53 +0000 | [diff] [blame] | 366 | def get_threads_access_object(self): |
| 367 | '''An accessor function that returns a modules_access() object which allows lazy thread access from a lldb.SBProcess object.''' |
| 368 | return self.threads_access (self) |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 369 | |
| 370 | def get_process_thread_list(self): |
Greg Clayton | b6a5ba6 | 2012-02-03 03:22:53 +0000 | [diff] [blame] | 371 | '''An accessor function that returns a list() that contains all threads in a lldb.SBProcess object.''' |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 372 | threads = [] |
Enrico Granata | 2cb0203 | 2012-10-08 19:06:11 +0000 | [diff] [blame] | 373 | accessor = self.get_threads_access_object() |
| 374 | for idx in range(len(accessor)): |
| 375 | threads.append(accessor[idx]) |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 376 | return threads |
| 377 | |
| 378 | __swig_getmethods__["threads"] = get_process_thread_list |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 379 | if _newclass: threads = property(get_process_thread_list, None, doc='''A read only property that returns a list() of lldb.SBThread objects for this process.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 380 | |
Greg Clayton | b6a5ba6 | 2012-02-03 03:22:53 +0000 | [diff] [blame] | 381 | __swig_getmethods__["thread"] = get_threads_access_object |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 382 | if _newclass: thread = property(get_threads_access_object, None, doc='''A read only property that returns an object that can access threads by thread index (thread = lldb.process.thread[12]).''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 383 | |
| 384 | __swig_getmethods__["is_alive"] = __get_is_alive__ |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 385 | if _newclass: is_alive = property(__get_is_alive__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently alive.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 386 | |
| 387 | __swig_getmethods__["is_running"] = __get_is_running__ |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 388 | if _newclass: is_running = property(__get_is_running__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently running.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 389 | |
| 390 | __swig_getmethods__["is_stopped"] = __get_is_running__ |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 391 | if _newclass: is_stopped = property(__get_is_running__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently stopped.''') |
Greg Clayton | b302dff | 2012-02-01 08:09:32 +0000 | [diff] [blame] | 392 | |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 393 | __swig_getmethods__["id"] = GetProcessID |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 394 | if _newclass: id = property(GetProcessID, None, doc='''A read only property that returns the process ID as an integer.''') |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 395 | |
| 396 | __swig_getmethods__["target"] = GetTarget |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 397 | if _newclass: target = property(GetTarget, None, doc='''A read only property that an lldb object that represents the target (lldb.SBTarget) that owns this process.''') |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 398 | |
| 399 | __swig_getmethods__["num_threads"] = GetNumThreads |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 400 | if _newclass: num_threads = property(GetNumThreads, None, doc='''A read only property that returns the number of threads in this process as an integer.''') |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 401 | |
| 402 | __swig_getmethods__["selected_thread"] = GetSelectedThread |
| 403 | __swig_setmethods__["selected_thread"] = SetSelectedThread |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 404 | if _newclass: selected_thread = property(GetSelectedThread, SetSelectedThread, doc='''A read/write property that gets/sets the currently selected thread in this process. The getter returns a lldb.SBThread object and the setter takes an lldb.SBThread object.''') |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 405 | |
| 406 | __swig_getmethods__["state"] = GetState |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 407 | if _newclass: state = property(GetState, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eState") that represents the current state of this process (running, stopped, exited, etc.).''') |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 408 | |
| 409 | __swig_getmethods__["exit_state"] = GetExitStatus |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 410 | if _newclass: exit_state = property(GetExitStatus, None, doc='''A read only property that returns an exit status as an integer of this process when the process state is lldb.eStateExited.''') |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 411 | |
| 412 | __swig_getmethods__["exit_description"] = GetExitDescription |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 413 | if _newclass: exit_description = property(GetExitDescription, None, doc='''A read only property that returns an exit description as a string of this process when the process state is lldb.eStateExited.''') |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 414 | |
| 415 | __swig_getmethods__["broadcaster"] = GetBroadcaster |
Greg Clayton | 2a94be1 | 2012-06-29 22:00:42 +0000 | [diff] [blame] | 416 | if _newclass: broadcaster = property(GetBroadcaster, None, doc='''A read only property that an lldb object that represents the broadcaster (lldb.SBBroadcaster) for this process.''') |
Greg Clayton | 1b92520 | 2012-01-29 06:07:39 +0000 | [diff] [blame] | 417 | %} |
| 418 | |
Johnny Chen | c3fba81 | 2011-07-18 20:13:38 +0000 | [diff] [blame] | 419 | }; |
| 420 | |
| 421 | } // namespace lldb |