1 //===-- Symbols.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 liblldb_Symbols_h_
11 #define liblldb_Symbols_h_
17 // Other libraries and framework includes
19 #include "lldb/Utility/FileSpec.h"
21 namespace lldb_private {
29 //----------------------------------------------------------------------
30 // Locate the executable file given a module specification.
32 // Locating the file should happen only on the local computer or using the
33 // current computers global settings.
34 //----------------------------------------------------------------------
35 static ModuleSpec LocateExecutableObjectFile(const ModuleSpec &module_spec);
37 //----------------------------------------------------------------------
38 // Locate the symbol file given a module specification.
40 // Locating the file should happen only on the local computer or using the
41 // current computers global settings.
42 //----------------------------------------------------------------------
43 static FileSpec LocateExecutableSymbolFile(const ModuleSpec &module_spec);
45 static FileSpec FindSymbolFileInBundle(const FileSpec &dsym_bundle_fspec,
46 const lldb_private::UUID *uuid,
47 const ArchSpec *arch);
49 //----------------------------------------------------------------------
50 // Locate the object and symbol file given a module specification.
52 // Locating the file can try to download the file from a corporate build
53 // repository, or using any other means necessary to locate both the
54 // unstripped object file and the debug symbols. The force_lookup argument
55 // controls whether the external program is called unconditionally to find
56 // the symbol file, or if the user's settings are checked to see if they've
57 // enabled the external program before calling.
59 //----------------------------------------------------------------------
60 static bool DownloadObjectAndSymbolFile(ModuleSpec &module_spec,
61 bool force_lookup = true);
64 } // namespace lldb_private
66 #endif // liblldb_Symbols_h_