1 //===-- SBModuleSpec.h ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBModuleSpec_h_
11 #define LLDB_SBModuleSpec_h_
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBFileSpec.h"
24 SBModuleSpec (const SBModuleSpec &rhs);
29 operator = (const SBModuleSpec &rhs);
37 //------------------------------------------------------------------
38 /// Get const accessor for the module file.
40 /// This function returns the file for the module on the host system
41 /// that is running LLDB. This can differ from the path on the
42 /// platform since we might be doing remote debugging.
45 /// A const reference to the file specification object.
46 //------------------------------------------------------------------
51 SetFileSpec (const lldb::SBFileSpec &fspec);
53 //------------------------------------------------------------------
54 /// Get accessor for the module platform file.
56 /// Platform file refers to the path of the module as it is known on
57 /// the remote system on which it is being debugged. For local
58 /// debugging this is always the same as Module::GetFileSpec(). But
59 /// remote debugging might mention a file '/usr/lib/liba.dylib'
60 /// which might be locally downloaded and cached. In this case the
61 /// platform file could be something like:
62 /// '/tmp/lldb/platform-cache/remote.host.computer/usr/lib/liba.dylib'
63 /// The file could also be cached in a local developer kit directory.
66 /// A const reference to the file specification object.
67 //------------------------------------------------------------------
69 GetPlatformFileSpec ();
72 SetPlatformFileSpec (const lldb::SBFileSpec &fspec);
78 SetSymbolFileSpec (const lldb::SBFileSpec &fspec);
84 SetObjectName (const char *name);
90 SetTriple (const char *triple);
99 SetUUIDBytes (const uint8_t *uuid, size_t uuid_len);
102 GetDescription (lldb::SBStream &description);
105 friend class SBModuleSpecList;
106 friend class SBModule;
107 friend class SBTarget;
109 std::unique_ptr<lldb_private::ModuleSpec> m_opaque_ap;
112 class SBModuleSpecList
117 SBModuleSpecList (const SBModuleSpecList &rhs);
122 operator = (const SBModuleSpecList &rhs);
124 static SBModuleSpecList
125 GetModuleSpecifications (const char *path);
128 Append (const SBModuleSpec &spec);
131 Append (const SBModuleSpecList &spec_list);
134 FindFirstMatchingSpec (const SBModuleSpec &match_spec);
137 FindMatchingSpecs (const SBModuleSpec &match_spec);
143 GetSpecAtIndex (size_t i);
146 GetDescription (lldb::SBStream &description);
149 std::unique_ptr<lldb_private::ModuleSpecList> m_opaque_ap;
154 #endif // LLDB_SBModuleSpec_h_