1 //===-- lldb-private.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_lldb_private_h_
11 #define lldb_lldb_private_h_
13 #if defined(__cplusplus)
16 #include "lldb/Host/windows/win32.h"
19 #ifdef __ANDROID_NDK__
20 #include "lldb/Host/android/Android.h"
23 #include "lldb/lldb-public.h"
24 #include "lldb/lldb-private-enumerations.h"
25 #include "lldb/lldb-private-interfaces.h"
26 #include "lldb/lldb-private-log.h"
27 #include "lldb/lldb-private-types.h"
29 namespace lldb_private {
31 //------------------------------------------------------------------
34 /// This function should be called prior to using any lldb
35 /// classes to ensure they have a chance to do any static
36 /// initialization that they need to do.
37 //------------------------------------------------------------------
42 //------------------------------------------------------------------
43 /// Notifies any classes that lldb will be terminating soon.
45 /// This function will be called when the Debugger shared instance
46 /// is being destructed and will give classes the ability to clean
47 /// up any threads or other resources they have that they might not
48 /// be able to clean up in their own destructors.
50 /// Internal classes that need this ability will need to add their
51 /// void T::WillTerminate() method in the body of this function in
52 /// lldb.cpp to ensure it will get called.
54 /// TODO: when we start having external plug-ins, we will need a way
55 /// for plug-ins to register a WillTerminate callback.
56 //------------------------------------------------------------------
60 //------------------------------------------------------------------
63 /// This function optionally can be called when clients are done
64 /// using lldb functionality to free up any static resources
65 /// that have been allocated during initialization or during
66 /// function calls. No lldb functions should be called after
67 /// calling this function without again calling DCInitialize()
69 //------------------------------------------------------------------
78 GetVoteAsCString (Vote vote);
81 GetSectionTypeAsCString (lldb::SectionType sect_type);
84 NameMatches (const char *name, NameMatchType match_type, const char *match);
86 } // namespace lldb_private
89 #endif // defined(__cplusplus)
92 #endif // lldb_lldb_private_h_