blob: 21f9dcc4055f7023534b14ed2c1ebe47fe17e332 [file] [log] [blame]
Johnny Chenf74cb502011-07-18 23:11:07 +00001//===-- SWIG Interface for SBModule -----------------------------*- 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
10namespace lldb {
11
12%feature("docstring",
13"Represents an executable image and its associated object and symbol files.
14
15The module is designed to be able to select a single slice of an
16executable image as it would appear on disk and during program
17execution.
18
19You can retrieve SBModule from SBSymbolContext, which in turn is available
20from SBFrame.
21
22SBModule supports symbol iteration, for example,
23
24 for symbol in module:
25 name = symbol.GetName()
26 saddr = symbol.GetStartAddress()
27 eaddr = symbol.GetEndAddress()
28
29and rich comparion methods which allow the API program to use,
30
31 if thisModule == thatModule:
32 print 'This module is the same as that module'
33
Johnny Chen5b94dc22011-09-24 04:51:43 +000034to test module equality. A module also contains object file sections, namely
Johnny Chenc44e20c2011-09-30 00:42:49 +000035SBSection. SBModule supports section iteration through section_iter(), for
36example,
37
38 print 'Number of sections: %d' % module.GetNumSections()
39 for sec in module.section_iter():
40 print sec
41
42And to iterate the symbols within a SBSection, use symbol_in_section_iter(),
43
44 # Iterates the text section and prints each symbols within each sub-section.
45 for subsec in text_sec:
46 print INDENT + repr(subsec)
47 for sym in exe_module.symbol_in_section_iter(subsec):
48 print INDENT2 + repr(sym)
49 print INDENT2 + 'symbol type: %s' % symbol_type_to_str(sym.GetType())
50
Johnny Chenb49b7b52011-10-01 01:19:45 +000051produces this following output:
Johnny Chenc44e20c2011-09-30 00:42:49 +000052
53 [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text
54 id = {0x00000004}, name = 'mask_access(MaskAction, unsigned int)', range = [0x00000001000017c0-0x0000000100001870)
55 symbol type: code
56 id = {0x00000008}, name = 'thread_func(void*)', range = [0x0000000100001870-0x00000001000019b0)
57 symbol type: code
58 id = {0x0000000c}, name = 'main', range = [0x00000001000019b0-0x0000000100001d5c)
59 symbol type: code
60 id = {0x00000023}, name = 'start', address = 0x0000000100001780
61 symbol type: code
62 [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs
63 id = {0x00000024}, name = '__stack_chk_fail', range = [0x0000000100001d5c-0x0000000100001d62)
64 symbol type: trampoline
65 id = {0x00000028}, name = 'exit', range = [0x0000000100001d62-0x0000000100001d68)
66 symbol type: trampoline
67 id = {0x00000029}, name = 'fflush', range = [0x0000000100001d68-0x0000000100001d6e)
68 symbol type: trampoline
69 id = {0x0000002a}, name = 'fgets', range = [0x0000000100001d6e-0x0000000100001d74)
70 symbol type: trampoline
71 id = {0x0000002b}, name = 'printf', range = [0x0000000100001d74-0x0000000100001d7a)
72 symbol type: trampoline
73 id = {0x0000002c}, name = 'pthread_create', range = [0x0000000100001d7a-0x0000000100001d80)
74 symbol type: trampoline
75 id = {0x0000002d}, name = 'pthread_join', range = [0x0000000100001d80-0x0000000100001d86)
76 symbol type: trampoline
77 id = {0x0000002e}, name = 'pthread_mutex_lock', range = [0x0000000100001d86-0x0000000100001d8c)
78 symbol type: trampoline
79 id = {0x0000002f}, name = 'pthread_mutex_unlock', range = [0x0000000100001d8c-0x0000000100001d92)
80 symbol type: trampoline
81 id = {0x00000030}, name = 'rand', range = [0x0000000100001d92-0x0000000100001d98)
82 symbol type: trampoline
83 id = {0x00000031}, name = 'strtoul', range = [0x0000000100001d98-0x0000000100001d9e)
84 symbol type: trampoline
85 id = {0x00000032}, name = 'usleep', range = [0x0000000100001d9e-0x0000000100001da4)
86 symbol type: trampoline
87 [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper
88 [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring
89 [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info
90 [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame
91"
Johnny Chenf74cb502011-07-18 23:11:07 +000092) SBModule;
93class SBModule
94{
95public:
96
97 SBModule ();
98
Greg Clayton226cce22013-07-08 22:22:41 +000099 SBModule (const lldb::SBModule &rhs);
100
101 SBModule (const lldb::SBModuleSpec &module_spec);
Johnny Chenf74cb502011-07-18 23:11:07 +0000102
Greg Claytonc9660542012-02-05 02:38:54 +0000103 SBModule (lldb::SBProcess &process,
104 lldb::addr_t header_addr);
105
Johnny Chenf74cb502011-07-18 23:11:07 +0000106 ~SBModule ();
107
108 bool
109 IsValid () const;
110
Jim Ingham5d3bca42011-12-19 20:39:44 +0000111 void
112 Clear();
113
Johnny Chenf74cb502011-07-18 23:11:07 +0000114 %feature("docstring", "
115 //------------------------------------------------------------------
116 /// Get const accessor for the module file specification.
117 ///
118 /// This function returns the file for the module on the host system
119 /// that is running LLDB. This can differ from the path on the
120 /// platform since we might be doing remote debugging.
121 ///
122 /// @return
123 /// A const reference to the file specification object.
124 //------------------------------------------------------------------
125 ") GetFileSpec;
126 lldb::SBFileSpec
127 GetFileSpec () const;
128
129 %feature("docstring", "
130 //------------------------------------------------------------------
131 /// Get accessor for the module platform file specification.
132 ///
133 /// Platform file refers to the path of the module as it is known on
134 /// the remote system on which it is being debugged. For local
135 /// debugging this is always the same as Module::GetFileSpec(). But
136 /// remote debugging might mention a file '/usr/lib/liba.dylib'
137 /// which might be locally downloaded and cached. In this case the
138 /// platform file could be something like:
139 /// '/tmp/lldb/platform-cache/remote.host.computer/usr/lib/liba.dylib'
140 /// The file could also be cached in a local developer kit directory.
141 ///
142 /// @return
143 /// A const reference to the file specification object.
144 //------------------------------------------------------------------
145 ") GetPlatformFileSpec;
146 lldb::SBFileSpec
147 GetPlatformFileSpec () const;
148
149 bool
150 SetPlatformFileSpec (const lldb::SBFileSpec &platform_file);
Greg Claytonfbb76342013-11-20 21:07:01 +0000151
152 lldb::SBFileSpec
153 GetRemoteInstallFileSpec ();
154
155 bool
156 SetRemoteInstallFileSpec (lldb::SBFileSpec &file);
Johnny Chenf74cb502011-07-18 23:11:07 +0000157
158 %feature("docstring", "Returns the UUID of the module as a Python string."
159 ) GetUUIDString;
160 const char *
161 GetUUIDString () const;
162
Greg Claytoncac9c5f2011-09-24 00:52:29 +0000163 lldb::SBSection
164 FindSection (const char *sect_name);
165
166 lldb::SBAddress
167 ResolveFileAddress (lldb::addr_t vm_addr);
Johnny Chenf74cb502011-07-18 23:11:07 +0000168
169 lldb::SBSymbolContext
170 ResolveSymbolContextForAddress (const lldb::SBAddress& addr,
171 uint32_t resolve_scope);
172
173 bool
174 GetDescription (lldb::SBStream &description);
175
Johnny Chen1b72f092012-03-16 21:55:42 +0000176 uint32_t
177 GetNumCompileUnits();
178
179 lldb::SBCompileUnit
180 GetCompileUnitAtIndex (uint32_t);
181
Johnny Chenf74cb502011-07-18 23:11:07 +0000182 size_t
183 GetNumSymbols ();
184
185 lldb::SBSymbol
186 GetSymbolAtIndex (size_t idx);
187
Greg Claytone14e1922012-12-04 02:22:16 +0000188 lldb::SBSymbol
189 FindSymbol (const char *name,
190 lldb::SymbolType type = eSymbolTypeAny);
191
192 lldb::SBSymbolContextList
193 FindSymbols (const char *name,
194 lldb::SymbolType type = eSymbolTypeAny);
195
196
Greg Claytoncac9c5f2011-09-24 00:52:29 +0000197 size_t
198 GetNumSections ();
199
200 lldb::SBSection
201 GetSectionAtIndex (size_t idx);
202
203
Johnny Chenf74cb502011-07-18 23:11:07 +0000204 %feature("docstring", "
205 //------------------------------------------------------------------
206 /// Find functions by name.
207 ///
208 /// @param[in] name
209 /// The name of the function we are looking for.
210 ///
211 /// @param[in] name_type_mask
212 /// A logical OR of one or more FunctionNameType enum bits that
213 /// indicate what kind of names should be used when doing the
214 /// lookup. Bits include fully qualified names, base names,
215 /// C++ methods, or ObjC selectors.
216 /// See FunctionNameType for more details.
217 ///
Greg Clayton5569e642012-02-06 01:44:54 +0000218 /// @return
Johnny Chenf74cb502011-07-18 23:11:07 +0000219 /// A symbol context list that gets filled in with all of the
220 /// matches.
Johnny Chenf74cb502011-07-18 23:11:07 +0000221 //------------------------------------------------------------------
222 ") FindFunctions;
Greg Clayton5569e642012-02-06 01:44:54 +0000223 lldb::SBSymbolContextList
Johnny Chenf74cb502011-07-18 23:11:07 +0000224 FindFunctions (const char *name,
Greg Clayton5569e642012-02-06 01:44:54 +0000225 uint32_t name_type_mask = lldb::eFunctionNameTypeAny);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000226
227 lldb::SBType
228 FindFirstType (const char* name);
229
230 lldb::SBTypeList
231 FindTypes (const char* type);
232
Greg Claytonb43165b2012-12-05 21:24:42 +0000233 lldb::SBType
234 GetBasicType(lldb::BasicType type);
Johnny Chenf74cb502011-07-18 23:11:07 +0000235
236 %feature("docstring", "
237 //------------------------------------------------------------------
Greg Claytonf02500c2013-06-18 22:51:05 +0000238 /// Get all types matching \a type_mask from debug info in this
239 /// module.
240 ///
241 /// @param[in] type_mask
242 /// A bitfield that consists of one or more bits logically OR'ed
243 /// together from the lldb::TypeClass enumeration. This allows
244 /// you to request only structure types, or only class, struct
245 /// and union types. Passing in lldb::eTypeClassAny will return
246 /// all types found in the debug information for this module.
247 ///
248 /// @return
249 /// A list of types in this module that match \a type_mask
250 //------------------------------------------------------------------
251 ") GetTypes;
252 lldb::SBTypeList
253 GetTypes (uint32_t type_mask = lldb::eTypeClassAny);
254
255 %feature("docstring", "
256 //------------------------------------------------------------------
Johnny Chenf74cb502011-07-18 23:11:07 +0000257 /// Find global and static variables by name.
258 ///
259 /// @param[in] target
260 /// A valid SBTarget instance representing the debuggee.
261 ///
262 /// @param[in] name
263 /// The name of the global or static variable we are looking
264 /// for.
265 ///
266 /// @param[in] max_matches
267 /// Allow the number of matches to be limited to \a max_matches.
268 ///
269 /// @return
270 /// A list of matched variables in an SBValueList.
271 //------------------------------------------------------------------
272 ") FindGlobalVariables;
273 lldb::SBValueList
274 FindGlobalVariables (lldb::SBTarget &target,
275 const char *name,
276 uint32_t max_matches);
Greg Clayton13d19502012-01-29 06:07:39 +0000277
Enrico Granatabcd80b42013-01-16 18:53:52 +0000278 %feature("docstring", "
279 //------------------------------------------------------------------
280 /// Find the first global (or static) variable by name.
281 ///
282 /// @param[in] target
283 /// A valid SBTarget instance representing the debuggee.
284 ///
285 /// @param[in] name
286 /// The name of the global or static variable we are looking
287 /// for.
288 ///
289 /// @return
290 /// An SBValue that gets filled in with the found variable (if any).
291 //------------------------------------------------------------------
292 ") FindFirstGlobalVariable;
293 lldb::SBValue
294 FindFirstGlobalVariable (lldb::SBTarget &target, const char *name);
295
Greg Clayton13d19502012-01-29 06:07:39 +0000296 lldb::ByteOrder
297 GetByteOrder ();
298
299 uint32_t
300 GetAddressByteSize();
301
302 const char *
303 GetTriple ();
Greg Claytonc2ff9312012-02-22 19:41:02 +0000304
305 uint32_t
306 GetVersion (uint32_t *versions,
307 uint32_t num_versions);
Greg Clayton13d19502012-01-29 06:07:39 +0000308
Enrico Granatac3387332013-05-03 01:29:27 +0000309 bool
310 operator == (const lldb::SBModule &rhs) const;
311
312 bool
313 operator != (const lldb::SBModule &rhs) const;
314
Greg Clayton13d19502012-01-29 06:07:39 +0000315 %pythoncode %{
Greg Clayton6b2bd932012-02-01 08:09:32 +0000316 class symbols_access(object):
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000317 re_compile_type = type(re.compile('.'))
Greg Clayton66a907a2013-03-07 03:25:11 +0000318 '''A helper object that will lazily hand out lldb.SBSymbol objects for a module when supplied an index, name, or regular expression.'''
Greg Clayton6b2bd932012-02-01 08:09:32 +0000319 def __init__(self, sbmodule):
320 self.sbmodule = sbmodule
321
322 def __len__(self):
323 if self.sbmodule:
Filipe Cabecinhas1a96ef82012-05-11 20:39:42 +0000324 return int(self.sbmodule.GetNumSymbols())
Greg Clayton6b2bd932012-02-01 08:09:32 +0000325 return 0
326
327 def __getitem__(self, key):
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000328 count = len(self)
Greg Clayton6b2bd932012-02-01 08:09:32 +0000329 if type(key) is int:
330 if key < count:
331 return self.sbmodule.GetSymbolAtIndex(key)
332 elif type(key) is str:
333 matches = []
Greg Claytone14e1922012-12-04 02:22:16 +0000334 sc_list = self.sbmodule.FindSymbols(key)
335 for sc in sc_list:
336 symbol = sc.symbol
337 if symbol:
Greg Clayton6b2bd932012-02-01 08:09:32 +0000338 matches.append(symbol)
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000339 return matches
340 elif isinstance(key, self.re_compile_type):
Greg Clayton6b2bd932012-02-01 08:09:32 +0000341 matches = []
342 for idx in range(count):
343 symbol = self.sbmodule.GetSymbolAtIndex(idx)
344 added = False
345 name = symbol.name
346 if name:
347 re_match = key.search(name)
348 if re_match:
349 matches.append(symbol)
350 added = True
351 if not added:
352 mangled = symbol.mangled
353 if mangled:
354 re_match = key.search(mangled)
355 if re_match:
356 matches.append(symbol)
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000357 return matches
Greg Clayton6b2bd932012-02-01 08:09:32 +0000358 else:
359 print "error: unsupported item type: %s" % type(key)
360 return None
361
362 def get_symbols_access_object(self):
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000363 '''An accessor function that returns a symbols_access() object which allows lazy symbol access from a lldb.SBModule object.'''
Greg Clayton6b2bd932012-02-01 08:09:32 +0000364 return self.symbols_access (self)
365
Greg Clayton66a907a2013-03-07 03:25:11 +0000366 def get_compile_units_access_object (self):
367 '''An accessor function that returns a compile_units_access() object which allows lazy compile unit access from a lldb.SBModule object.'''
368 return self.compile_units_access (self)
369
Greg Clayton6b2bd932012-02-01 08:09:32 +0000370 def get_symbols_array(self):
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000371 '''An accessor function that returns a list() that contains all symbols in a lldb.SBModule object.'''
Greg Clayton6b2bd932012-02-01 08:09:32 +0000372 symbols = []
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000373 for idx in range(self.num_symbols):
Greg Clayton6b2bd932012-02-01 08:09:32 +0000374 symbols.append(self.GetSymbolAtIndex(idx))
375 return symbols
376
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000377 class sections_access(object):
378 re_compile_type = type(re.compile('.'))
Greg Clayton66a907a2013-03-07 03:25:11 +0000379 '''A helper object that will lazily hand out lldb.SBSection objects for a module when supplied an index, name, or regular expression.'''
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000380 def __init__(self, sbmodule):
381 self.sbmodule = sbmodule
382
383 def __len__(self):
384 if self.sbmodule:
Filipe Cabecinhas1a96ef82012-05-11 20:39:42 +0000385 return int(self.sbmodule.GetNumSections())
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000386 return 0
387
388 def __getitem__(self, key):
389 count = len(self)
390 if type(key) is int:
391 if key < count:
392 return self.sbmodule.GetSectionAtIndex(key)
393 elif type(key) is str:
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000394 for idx in range(count):
395 section = self.sbmodule.GetSectionAtIndex(idx)
396 if section.name == key:
Greg Clayton819134a2012-02-04 02:58:17 +0000397 return section
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000398 elif isinstance(key, self.re_compile_type):
399 matches = []
400 for idx in range(count):
401 section = self.sbmodule.GetSectionAtIndex(idx)
402 name = section.name
403 if name:
404 re_match = key.search(name)
405 if re_match:
406 matches.append(section)
407 return matches
408 else:
409 print "error: unsupported item type: %s" % type(key)
410 return None
Greg Clayton66a907a2013-03-07 03:25:11 +0000411
412 class compile_units_access(object):
413 re_compile_type = type(re.compile('.'))
414 '''A helper object that will lazily hand out lldb.SBCompileUnit objects for a module when supplied an index, full or partial path, or regular expression.'''
415 def __init__(self, sbmodule):
416 self.sbmodule = sbmodule
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000417
Greg Clayton66a907a2013-03-07 03:25:11 +0000418 def __len__(self):
419 if self.sbmodule:
420 return int(self.sbmodule.GetNumCompileUnits())
421 return 0
422
423 def __getitem__(self, key):
424 count = len(self)
425 if type(key) is int:
426 if key < count:
427 return self.sbmodule.GetCompileUnitAtIndex(key)
428 elif type(key) is str:
429 is_full_path = key[0] == '/'
430 for idx in range(count):
431 comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx)
432 if is_full_path:
433 if comp_unit.file.fullpath == key:
434 return comp_unit
435 else:
436 if comp_unit.file.basename == key:
437 return comp_unit
438 elif isinstance(key, self.re_compile_type):
439 matches = []
440 for idx in range(count):
441 comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx)
442 fullpath = comp_unit.file.fullpath
443 if fullpath:
444 re_match = key.search(fullpath)
445 if re_match:
446 matches.append(comp_unit)
447 return matches
448 else:
449 print "error: unsupported item type: %s" % type(key)
450 return None
451
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000452 def get_sections_access_object(self):
453 '''An accessor function that returns a sections_access() object which allows lazy section array access.'''
454 return self.sections_access (self)
455
456 def get_sections_array(self):
457 '''An accessor function that returns an array object that contains all sections in this module object.'''
Greg Clayton006c1d12013-02-25 21:53:07 +0000458 if not hasattr(self, 'sections_array'):
459 self.sections_array = []
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000460 for idx in range(self.num_sections):
Greg Clayton006c1d12013-02-25 21:53:07 +0000461 self.sections_array.append(self.GetSectionAtIndex(idx))
462 return self.sections_array
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000463
Greg Clayton66a907a2013-03-07 03:25:11 +0000464 def get_compile_units_array(self):
465 '''An accessor function that returns an array object that contains all compile_units in this module object.'''
466 if not hasattr(self, 'compile_units_array'):
467 self.compile_units_array = []
468 for idx in range(self.GetNumCompileUnits()):
469 self.compile_units_array.append(self.GetCompileUnitAtIndex(idx))
470 return self.compile_units_array
471
Greg Clayton6b2bd932012-02-01 08:09:32 +0000472 __swig_getmethods__["symbols"] = get_symbols_array
Greg Clayton5ef31a92012-06-29 22:00:42 +0000473 if _newclass: symbols = property(get_symbols_array, None, doc='''A read only property that returns a list() of lldb.SBSymbol objects contained in this module.''')
Greg Clayton6b2bd932012-02-01 08:09:32 +0000474
475 __swig_getmethods__["symbol"] = get_symbols_access_object
Greg Clayton5ef31a92012-06-29 22:00:42 +0000476 if _newclass: symbol = property(get_symbols_access_object, None, doc='''A read only property that can be used to access symbols by index ("symbol = module.symbol[0]"), name ("symbols = module.symbol['main']"), or using a regular expression ("symbols = module.symbol[re.compile(...)]"). The return value is a single lldb.SBSymbol object for array access, and a list() of lldb.SBSymbol objects for name and regular expression access''')
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000477
478 __swig_getmethods__["sections"] = get_sections_array
Greg Clayton5ef31a92012-06-29 22:00:42 +0000479 if _newclass: sections = property(get_sections_array, None, doc='''A read only property that returns a list() of lldb.SBSection objects contained in this module.''')
Greg Clayton66a907a2013-03-07 03:25:11 +0000480
481 __swig_getmethods__["compile_units"] = get_compile_units_array
482 if _newclass: compile_units = property(get_compile_units_array, None, doc='''A read only property that returns a list() of lldb.SBCompileUnit objects contained in this module.''')
483
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000484 __swig_getmethods__["section"] = get_sections_access_object
Greg Clayton5ef31a92012-06-29 22:00:42 +0000485 if _newclass: section = property(get_sections_access_object, None, doc='''A read only property that can be used to access symbols by index ("section = module.section[0]"), name ("sections = module.section[\'main\']"), or using a regular expression ("sections = module.section[re.compile(...)]"). The return value is a single lldb.SBSection object for array access, and a list() of lldb.SBSection objects for name and regular expression access''')
Greg Claytonb62bb8c2012-02-03 03:22:53 +0000486
Greg Clayton66a907a2013-03-07 03:25:11 +0000487 __swig_getmethods__["compile_unit"] = get_compile_units_access_object
488 if _newclass: section = property(get_sections_access_object, None, doc='''A read only property that can be used to access compile units by index ("compile_unit = module.compile_unit[0]"), name ("compile_unit = module.compile_unit[\'main.cpp\']"), or using a regular expression ("compile_unit = module.compile_unit[re.compile(...)]"). The return value is a single lldb.SBCompileUnit object for array access or by full or partial path, and a list() of lldb.SBCompileUnit objects regular expressions.''')
489
Greg Clayton6b2bd932012-02-01 08:09:32 +0000490 def get_uuid(self):
491 return uuid.UUID (self.GetUUIDString())
492
493 __swig_getmethods__["uuid"] = get_uuid
Greg Clayton5ef31a92012-06-29 22:00:42 +0000494 if _newclass: uuid = property(get_uuid, None, doc='''A read only property that returns a standard python uuid.UUID object that represents the UUID of this module.''')
Greg Clayton6b2bd932012-02-01 08:09:32 +0000495
Greg Clayton13d19502012-01-29 06:07:39 +0000496 __swig_getmethods__["file"] = GetFileSpec
Greg Clayton5ef31a92012-06-29 22:00:42 +0000497 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this object file for this module as it is represented where it is being debugged.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000498
499 __swig_getmethods__["platform_file"] = GetPlatformFileSpec
Greg Clayton5ef31a92012-06-29 22:00:42 +0000500 if _newclass: platform_file = property(GetPlatformFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this object file for this module as it is represented on the current host system.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000501
Greg Clayton13d19502012-01-29 06:07:39 +0000502 __swig_getmethods__["byte_order"] = GetByteOrder
Greg Clayton5ef31a92012-06-29 22:00:42 +0000503 if _newclass: byte_order = property(GetByteOrder, None, doc='''A read only property that returns an lldb enumeration value (lldb.eByteOrderLittle, lldb.eByteOrderBig, lldb.eByteOrderInvalid) that represents the byte order for this module.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000504
505 __swig_getmethods__["addr_size"] = GetAddressByteSize
Greg Clayton5ef31a92012-06-29 22:00:42 +0000506 if _newclass: addr_size = property(GetAddressByteSize, None, doc='''A read only property that returns the size in bytes of an address for this module.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000507
508 __swig_getmethods__["triple"] = GetTriple
Greg Clayton5ef31a92012-06-29 22:00:42 +0000509 if _newclass: triple = property(GetTriple, None, doc='''A read only property that returns the target triple (arch-vendor-os) for this module.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000510
511 __swig_getmethods__["num_symbols"] = GetNumSymbols
Greg Clayton5ef31a92012-06-29 22:00:42 +0000512 if _newclass: num_symbols = property(GetNumSymbols, None, doc='''A read only property that returns number of symbols in the module symbol table as an integer.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000513
514 __swig_getmethods__["num_sections"] = GetNumSections
Greg Clayton5ef31a92012-06-29 22:00:42 +0000515 if _newclass: num_sections = property(GetNumSections, None, doc='''A read only property that returns number of sections in the module as an integer.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000516
517 %}
518
Johnny Chenf74cb502011-07-18 23:11:07 +0000519};
520
521} // namespace lldb