]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Host/Symbols.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Host / Symbols.h
1 //===-- Symbols.h -----------------------------------------------*- 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 #ifndef liblldb_Symbols_h_
11 #define liblldb_Symbols_h_
12
13 #include <stdint.h>
14
15 #include "lldb/Utility/FileSpec.h"
16
17 namespace lldb_private {
18
19 class ArchSpec;
20 class ModuleSpec;
21 class UUID;
22
23 class Symbols {
24 public:
25   //----------------------------------------------------------------------
26   // Locate the executable file given a module specification.
27   //
28   // Locating the file should happen only on the local computer or using the
29   // current computers global settings.
30   //----------------------------------------------------------------------
31   static ModuleSpec LocateExecutableObjectFile(const ModuleSpec &module_spec);
32
33   //----------------------------------------------------------------------
34   // Locate the symbol file given a module specification.
35   //
36   // Locating the file should happen only on the local computer or using the
37   // current computers global settings.
38   //----------------------------------------------------------------------
39   static FileSpec LocateExecutableSymbolFile(const ModuleSpec &module_spec);
40
41   static FileSpec FindSymbolFileInBundle(const FileSpec &dsym_bundle_fspec,
42                                          const lldb_private::UUID *uuid,
43                                          const ArchSpec *arch);
44
45   //----------------------------------------------------------------------
46   // Locate the object and symbol file given a module specification.
47   //
48   // Locating the file can try to download the file from a corporate build
49   // repository, or using any other means necessary to locate both the
50   // unstripped object file and the debug symbols. The force_lookup argument
51   // controls whether the external program is called unconditionally to find
52   // the symbol file, or if the user's settings are checked to see if they've
53   // enabled the external program before calling.
54   //
55   //----------------------------------------------------------------------
56   static bool DownloadObjectAndSymbolFile(ModuleSpec &module_spec,
57                                           bool force_lookup = true);
58 };
59
60 } // namespace lldb_private
61
62 #endif // liblldb_Symbols_h_