diff options
Diffstat (limited to 'contrib/llvm-project/lldb/include/lldb/API')
71 files changed, 735 insertions, 256 deletions
diff --git a/contrib/llvm-project/lldb/include/lldb/API/LLDB.h b/contrib/llvm-project/lldb/include/lldb/API/LLDB.h index 75e2d70c0c39..83c38d3b6166 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/LLDB.h +++ b/contrib/llvm-project/lldb/include/lldb/API/LLDB.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_LLDB_h_ -#define LLDB_LLDB_h_ +#ifndef LLDB_API_LLDB_H +#define LLDB_API_LLDB_H #include "lldb/API/SBAddress.h" #include "lldb/API/SBAttachInfo.h" @@ -24,6 +24,7 @@ #include "lldb/API/SBDebugger.h" #include "lldb/API/SBDeclaration.h" #include "lldb/API/SBDefines.h" +#include "lldb/API/SBEnvironment.h" #include "lldb/API/SBError.h" #include "lldb/API/SBEvent.h" #include "lldb/API/SBExecutionContext.h" @@ -78,4 +79,4 @@ #include "lldb/API/SBVariablesOptions.h" #include "lldb/API/SBWatchpoint.h" -#endif // LLDB_LLDB_h_ +#endif // LLDB_API_LLDB_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBAddress.h b/contrib/llvm-project/lldb/include/lldb/API/SBAddress.h index 2874a3602af2..cf7555dc2ee8 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBAddress.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBAddress.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBAddress_h_ -#define LLDB_SBAddress_h_ +#ifndef LLDB_API_SBADDRESS_H +#define LLDB_API_SBADDRESS_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBModule.h" @@ -127,4 +127,4 @@ bool LLDB_API operator==(const SBAddress &lhs, const SBAddress &rhs); } // namespace lldb -#endif // LLDB_SBAddress_h_ +#endif // LLDB_API_SBADDRESS_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBAttachInfo.h b/contrib/llvm-project/lldb/include/lldb/API/SBAttachInfo.h index 3c20a08cb4a9..9b211d0f74bd 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBAttachInfo.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBAttachInfo.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBAttachInfo_h_ -#define LLDB_SBAttachInfo_h_ +#ifndef LLDB_API_SBATTACHINFO_H +#define LLDB_API_SBATTACHINFO_H #include "lldb/API/SBDefines.h" @@ -174,4 +174,4 @@ protected: } // namespace lldb -#endif // LLDB_SBAttachInfo_h_ +#endif // LLDB_API_SBATTACHINFO_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBBlock.h b/contrib/llvm-project/lldb/include/lldb/API/SBBlock.h index 0ca92ff0c6ac..be1ae18e9db5 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBBlock.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBBlock.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBBlock_h_ -#define LLDB_SBBlock_h_ +#ifndef LLDB_API_SBBLOCK_H +#define LLDB_API_SBBLOCK_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBFrame.h" @@ -92,4 +92,4 @@ private: } // namespace lldb -#endif // LLDB_SBBlock_h_ +#endif // LLDB_API_SBBLOCK_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBBreakpoint.h b/contrib/llvm-project/lldb/include/lldb/API/SBBreakpoint.h index a5ce91d95089..c9a52fcacf1a 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBBreakpoint.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBBreakpoint.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBBreakpoint_h_ -#define LLDB_SBBreakpoint_h_ +#ifndef LLDB_API_SBBREAKPOINT_H +#define LLDB_API_SBBREAKPOINT_H #include "lldb/API/SBDefines.h" @@ -105,6 +105,8 @@ public: bool AddName(const char *new_name); + SBError AddNameWithErrorHandling(const char *new_name); + void RemoveName(const char *name_to_remove); bool MatchesName(const char *name); @@ -181,4 +183,4 @@ private: } // namespace lldb -#endif // LLDB_SBBreakpoint_h_ +#endif // LLDB_API_SBBREAKPOINT_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBBreakpointLocation.h b/contrib/llvm-project/lldb/include/lldb/API/SBBreakpointLocation.h index a9e2ef1dd1b8..a906727f938a 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBBreakpointLocation.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBBreakpointLocation.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBBreakpointLocation_h_ -#define LLDB_SBBreakpointLocation_h_ +#ifndef LLDB_API_SBBREAKPOINTLOCATION_H +#define LLDB_API_SBBREAKPOINTLOCATION_H #include "lldb/API/SBBreakpoint.h" #include "lldb/API/SBDefines.h" @@ -100,4 +100,4 @@ private: } // namespace lldb -#endif // LLDB_SBBreakpointLocation_h_ +#endif // LLDB_API_SBBREAKPOINTLOCATION_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBBreakpointName.h b/contrib/llvm-project/lldb/include/lldb/API/SBBreakpointName.h index 3a5f1acf3e4a..8dd2c4e5ef34 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBBreakpointName.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBBreakpointName.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBBreakpointName_h_ -#define LLDB_SBBreakpointName_h_ +#ifndef LLDB_API_SBBREAKPOINTNAME_H +#define LLDB_API_SBBREAKPOINTNAME_H #include "lldb/API/SBDefines.h" @@ -119,4 +119,4 @@ private: } // namespace lldb -#endif // LLDB_SBBreakpointName_h_ +#endif // LLDB_API_SBBREAKPOINTNAME_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBBroadcaster.h b/contrib/llvm-project/lldb/include/lldb/API/SBBroadcaster.h index fc5e8880e9f2..69a516a8bfb1 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBBroadcaster.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBBroadcaster.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBBroadcaster_h_ -#define LLDB_SBBroadcaster_h_ +#ifndef LLDB_API_SBBROADCASTER_H +#define LLDB_API_SBBROADCASTER_H #include "lldb/API/SBDefines.h" @@ -81,4 +81,4 @@ private: } // namespace lldb -#endif // LLDB_SBBroadcaster_h_ +#endif // LLDB_API_SBBROADCASTER_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBCommandInterpreter.h b/contrib/llvm-project/lldb/include/lldb/API/SBCommandInterpreter.h index 6c80e8eb26dc..a70e060bec99 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBCommandInterpreter.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBCommandInterpreter.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBCommandInterpreter_h_ -#define LLDB_SBCommandInterpreter_h_ +#ifndef LLDB_API_SBCOMMANDINTERPRETER_H +#define LLDB_API_SBCOMMANDINTERPRETER_H #include <memory> @@ -16,52 +16,6 @@ namespace lldb { -class LLDB_API SBCommandInterpreterRunOptions { - friend class SBDebugger; - friend class SBCommandInterpreter; - -public: - SBCommandInterpreterRunOptions(); - ~SBCommandInterpreterRunOptions(); - - bool GetStopOnContinue() const; - - void SetStopOnContinue(bool); - - bool GetStopOnError() const; - - void SetStopOnError(bool); - - bool GetStopOnCrash() const; - - void SetStopOnCrash(bool); - - bool GetEchoCommands() const; - - void SetEchoCommands(bool); - - bool GetEchoCommentCommands() const; - - void SetEchoCommentCommands(bool echo); - - bool GetPrintResults() const; - - void SetPrintResults(bool); - - bool GetAddToHistory() const; - - void SetAddToHistory(bool); - -private: - lldb_private::CommandInterpreterRunOptions *get() const; - - lldb_private::CommandInterpreterRunOptions &ref() const; - - // This is set in the constructor and will always be valid. - mutable std::unique_ptr<lldb_private::CommandInterpreterRunOptions> - m_opaque_up; -}; - class SBCommandInterpreter { public: enum { @@ -111,14 +65,86 @@ public: lldb::SBCommand AddMultiwordCommand(const char *name, const char *help); + /// Add a new command to the lldb::CommandInterpreter. + /// + /// The new command won't support autorepeat. If you need this functionality, + /// use the override of this function that accepts the \a auto_repeat_command + /// parameter. + /// + /// \param[in] name + /// The name of the command. + /// + /// \param[in] impl + /// The handler of this command. + /// + /// \param[in] help + /// The general description to show as part of the help message of this + /// command. + /// + /// \return + /// A lldb::SBCommand representing the newly created command. lldb::SBCommand AddCommand(const char *name, lldb::SBCommandPluginInterface *impl, const char *help); + /// Add a new command to the lldb::CommandInterpreter. + /// + /// The new command won't support autorepeat. If you need this functionality, + /// use the override of this function that accepts the \a auto_repeat_command + /// parameter. + /// + /// \param[in] name + /// The name of the command. + /// + /// \param[in] impl + /// The handler of this command. + /// + /// \param[in] help + /// The general description to show as part of the help message of this + /// command. + /// + /// \param[in] syntax + /// The syntax to show as part of the help message of this command. This + /// could include a description of the different arguments and flags this + /// command accepts. + /// + /// \return + /// A lldb::SBCommand representing the newly created command. lldb::SBCommand AddCommand(const char *name, lldb::SBCommandPluginInterface *impl, const char *help, const char *syntax); + /// Add a new command to the lldb::CommandInterpreter. + /// + /// \param[in] name + /// The name of the command. + /// + /// \param[in] impl + /// The handler of this command. + /// + /// \param[in] help + /// The general description to show as part of the help message of this + /// command. + /// + /// \param[in] syntax + /// The syntax to show as part of the help message of this command. This + /// could include a description of the different arguments and flags this + /// command accepts. + /// + /// \param[in] auto_repeat_command + /// Autorepeating is triggered when the user presses Enter successively + /// after executing a command. If \b nullptr is provided, the previous + /// exact command will be repeated. If \b "" is provided, autorepeating + /// is disabled. Otherwise, the provided string is used as a repeat + /// command. + /// + /// \return + /// A lldb::SBCommand representing the newly created command. + lldb::SBCommand AddCommand(const char *name, + lldb::SBCommandPluginInterface *impl, + const char *help, const char *syntax, + const char *auto_repeat_command); + void SourceInitFileInHomeDirectory(lldb::SBCommandReturnObject &result); void @@ -283,14 +309,90 @@ public: lldb::SBCommand AddMultiwordCommand(const char *name, const char *help = nullptr); + /// Add a new subcommand to the lldb::SBCommand. + /// + /// The new command won't support autorepeat. If you need this functionality, + /// use the override of this function that accepts the \a auto_repeat + /// parameter. + /// + /// \param[in] name + /// The name of the command. + /// + /// \param[in] impl + /// The handler of this command. + /// + /// \param[in] help + /// The general description to show as part of the help message of this + /// command. + /// + /// \return + /// A lldb::SBCommand representing the newly created command. lldb::SBCommand AddCommand(const char *name, lldb::SBCommandPluginInterface *impl, const char *help = nullptr); + /// Add a new subcommand to the lldb::SBCommand. + /// + /// The new command won't support autorepeat. If you need this functionality, + /// use the override of this function that accepts the \a auto_repeat_command + /// parameter. + /// + /// \param[in] name + /// The name of the command. + /// + /// \param[in] impl + /// The handler of this command. + /// + /// \param[in] help + /// The general description to show as part of the help message of this + /// command. + /// + /// \param[in] syntax + /// The syntax to show as part of the help message of this command. This + /// could include a description of the different arguments and flags this + /// command accepts. + /// + /// \return + /// A lldb::SBCommand representing the newly created command. lldb::SBCommand AddCommand(const char *name, lldb::SBCommandPluginInterface *impl, const char *help, const char *syntax); + /// Add a new subcommand to the lldb::SBCommand. + /// + /// The new command won't support autorepeat. If you need this functionality, + /// use the override of this function that accepts the \a auto_repeat_command + /// parameter. + /// + /// \param[in] name + /// The name of the command. + /// + /// \param[in] impl + /// The handler of this command. + /// + /// \param[in] help + /// The general description to show as part of the help message of this + /// command. + /// + /// \param[in] syntax + /// The syntax to show as part of the help message of this command. This + /// could include a description of the different arguments and flags this + /// command accepts. + /// + /// \param[in] auto_repeat_command + /// Autorepeating is triggered when the user presses Enter successively + /// after executing a command. If \b nullptr is provided, the previous + /// exact command will be repeated. If \b "" is provided, autorepeating + /// is disabled. Otherwise, the provided string is used as a repeat + /// command. + /// + /// \return + /// A lldb::SBCommand representing the newly created command. + lldb::SBCommand AddCommand(const char *name, + lldb::SBCommandPluginInterface *impl, + const char *help, const char *syntax, + const char *auto_repeat_command); + private: friend class SBDebugger; friend class SBCommandInterpreter; @@ -302,4 +404,4 @@ private: } // namespace lldb -#endif // LLDB_SBCommandInterpreter_h_ +#endif // LLDB_API_SBCOMMANDINTERPRETER_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBCommandInterpreterRunOptions.h b/contrib/llvm-project/lldb/include/lldb/API/SBCommandInterpreterRunOptions.h new file mode 100644 index 000000000000..82d6feedc02e --- /dev/null +++ b/contrib/llvm-project/lldb/include/lldb/API/SBCommandInterpreterRunOptions.h @@ -0,0 +1,102 @@ +//===-- SBCommandInterpreterRunOptions.h ------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLDB_API_SBCOMMANDINTERPRETERRUNOPTIONS_H +#define LLDB_API_SBCOMMANDINTERPRETERRUNOPTIONS_H + +#include <memory> + +#include "lldb/API/SBDefines.h" + +namespace lldb_private { +class CommandInterpreterRunOptions; +class CommandInterpreterRunResult; +} // namespace lldb_private + +namespace lldb { + +class LLDB_API SBCommandInterpreterRunOptions { + friend class SBDebugger; + friend class SBCommandInterpreter; + +public: + SBCommandInterpreterRunOptions(); + ~SBCommandInterpreterRunOptions(); + + bool GetStopOnContinue() const; + + void SetStopOnContinue(bool); + + bool GetStopOnError() const; + + void SetStopOnError(bool); + + bool GetStopOnCrash() const; + + void SetStopOnCrash(bool); + + bool GetEchoCommands() const; + + void SetEchoCommands(bool); + + bool GetEchoCommentCommands() const; + + void SetEchoCommentCommands(bool echo); + + bool GetPrintResults() const; + + void SetPrintResults(bool); + + bool GetAddToHistory() const; + + void SetAddToHistory(bool); + + bool GetAutoHandleEvents() const; + + void SetAutoHandleEvents(bool); + + bool GetSpawnThread() const; + + void SetSpawnThread(bool); + +private: + lldb_private::CommandInterpreterRunOptions *get() const; + + lldb_private::CommandInterpreterRunOptions &ref() const; + + // This is set in the constructor and will always be valid. + mutable std::unique_ptr<lldb_private::CommandInterpreterRunOptions> + m_opaque_up; +}; + +class LLDB_API SBCommandInterpreterRunResult { + friend class SBDebugger; + friend class SBCommandInterpreter; + +public: + SBCommandInterpreterRunResult(); + SBCommandInterpreterRunResult(const SBCommandInterpreterRunResult &rhs); + ~SBCommandInterpreterRunResult(); + + SBCommandInterpreterRunResult & + operator=(const SBCommandInterpreterRunResult &rhs); + + int GetNumberOfErrors() const; + lldb::CommandInterpreterResult GetResult() const; + +private: + SBCommandInterpreterRunResult( + const lldb_private::CommandInterpreterRunResult &rhs); + + // This is set in the constructor and will always be valid. + std::unique_ptr<lldb_private::CommandInterpreterRunResult> m_opaque_up; +}; + +} // namespace lldb + +#endif // LLDB_API_SBCOMMANDINTERPRETERRUNOPTIONS_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBCommandReturnObject.h b/contrib/llvm-project/lldb/include/lldb/API/SBCommandReturnObject.h index e3fbacf85afc..4ee296eb1797 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBCommandReturnObject.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBCommandReturnObject.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBCommandReturnObject_h_ -#define LLDB_SBCommandReturnObject_h_ +#ifndef LLDB_API_SBCOMMANDRETURNOBJECT_H +#define LLDB_API_SBCOMMANDRETURNOBJECT_H #include <stdio.h> @@ -124,4 +124,4 @@ private: } // namespace lldb -#endif // LLDB_SBCommandReturnObject_h_ +#endif // LLDB_API_SBCOMMANDRETURNOBJECT_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBCommunication.h b/contrib/llvm-project/lldb/include/lldb/API/SBCommunication.h index 5b803fc6017c..84c341c0dfef 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBCommunication.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBCommunication.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBCommunication_h_ -#define LLDB_SBCommunication_h_ +#ifndef LLDB_API_SBCOMMUNICATION_H +#define LLDB_API_SBCOMMUNICATION_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBError.h" @@ -72,7 +72,8 @@ public: void *callback_baton); private: - DISALLOW_COPY_AND_ASSIGN(SBCommunication); + SBCommunication(const SBCommunication &) = delete; + const SBCommunication &operator=(const SBCommunication &) = delete; lldb_private::Communication *m_opaque; bool m_opaque_owned; @@ -80,4 +81,4 @@ private: } // namespace lldb -#endif // LLDB_SBCommunication_h_ +#endif // LLDB_API_SBCOMMUNICATION_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBCompileUnit.h b/contrib/llvm-project/lldb/include/lldb/API/SBCompileUnit.h index b6b138207d60..0c05ef44e31c 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBCompileUnit.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBCompileUnit.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBCompileUnit_h_ -#define LLDB_SBCompileUnit_h_ +#ifndef LLDB_API_SBCOMPILEUNIT_H +#define LLDB_API_SBCOMPILEUNIT_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBFileSpec.h" @@ -92,4 +92,4 @@ private: } // namespace lldb -#endif // LLDB_SBCompileUnit_h_ +#endif // LLDB_API_SBCOMPILEUNIT_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBData.h b/contrib/llvm-project/lldb/include/lldb/API/SBData.h index 886fe829a469..95c8086d5d47 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBData.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBData.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBData_h_ -#define LLDB_SBData_h_ +#ifndef LLDB_API_SBDATA_H +#define LLDB_API_SBDATA_H #include "lldb/API/SBDefines.h" @@ -152,4 +152,4 @@ private: } // namespace lldb -#endif // LLDB_SBData_h_ +#endif // LLDB_API_SBDATA_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBDebugger.h b/contrib/llvm-project/lldb/include/lldb/API/SBDebugger.h index 580f6281fbb6..b3bfa230139c 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBDebugger.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBDebugger.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBDebugger_h_ -#define LLDB_SBDebugger_h_ +#ifndef LLDB_API_SBDEBUGGER_H +#define LLDB_API_SBDEBUGGER_H #include <stdio.h> @@ -199,6 +199,10 @@ public: bool GetUseColor() const; + bool SetUseSourceCache(bool use_source_cache); + + bool GetUseSourceCache() const; + static bool GetDefaultArchitecture(char *arch_name, size_t arch_name_len); static bool SetDefaultArchitecture(const char *arch_name); @@ -286,13 +290,50 @@ public: SBTypeSynthetic GetSyntheticForType(SBTypeNameSpecifier); + /// Run the command interpreter. + /// + /// \param[in] auto_handle_events + /// If true, automatically handle resulting events. This takes precedence + /// and overrides the corresponding option in + /// SBCommandInterpreterRunOptions. + /// + /// \param[in] spawn_thread + /// If true, start a new thread for IO handling. This takes precedence + /// and overrides the corresponding option in + /// SBCommandInterpreterRunOptions. void RunCommandInterpreter(bool auto_handle_events, bool spawn_thread); + /// Run the command interpreter. + /// + /// \param[in] auto_handle_events + /// If true, automatically handle resulting events. This takes precedence + /// and overrides the corresponding option in + /// SBCommandInterpreterRunOptions. + /// + /// \param[in] spawn_thread + /// If true, start a new thread for IO handling. This takes precedence + /// and overrides the corresponding option in + /// SBCommandInterpreterRunOptions. + /// + /// \param[in] options + /// Parameter collection of type SBCommandInterpreterRunOptions. + /// + /// \param[out] num_errors + /// The number of errors. + /// + /// \param[out] quit_requested + /// Whether a quit was requested. + /// + /// \param[out] stopped_for_crash + /// Whether the interpreter stopped for a crash. void RunCommandInterpreter(bool auto_handle_events, bool spawn_thread, SBCommandInterpreterRunOptions &options, int &num_errors, bool &quit_requested, bool &stopped_for_crash); + SBCommandInterpreterRunResult + RunCommandInterpreter(const SBCommandInterpreterRunOptions &options); + SBError RunREPL(lldb::LanguageType language, const char *repl_options); private: @@ -319,4 +360,4 @@ private: } // namespace lldb -#endif // LLDB_SBDebugger_h_ +#endif // LLDB_API_SBDEBUGGER_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBDeclaration.h b/contrib/llvm-project/lldb/include/lldb/API/SBDeclaration.h index d2b423e40fec..aeaa28e1cada 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBDeclaration.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBDeclaration.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBDeclaration_h_ -#define LLDB_SBDeclaration_h_ +#ifndef LLDB_API_SBDECLARATION_H +#define LLDB_API_SBDECLARATION_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBFileSpec.h" @@ -68,4 +68,4 @@ private: } // namespace lldb -#endif // LLDB_SBDeclaration_h_ +#endif // LLDB_API_SBDECLARATION_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBDefines.h b/contrib/llvm-project/lldb/include/lldb/API/SBDefines.h index 68aca930d199..a5b639c6dc73 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBDefines.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBDefines.h @@ -6,9 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBDefines_h_ -#define LLDB_SBDefines_h_ - +#ifndef LLDB_API_SBDEFINES_H +#define LLDB_API_SBDEFINES_H #include "lldb/lldb-defines.h" #include "lldb/lldb-enumerations.h" @@ -29,6 +28,7 @@ class LLDB_API SBBroadcaster; class LLDB_API SBCommand; class LLDB_API SBCommandInterpreter; class LLDB_API SBCommandInterpreterRunOptions; +class LLDB_API SBCommandInterpreterRunResult; class LLDB_API SBCommandPluginInterface; class LLDB_API SBCommandReturnObject; class LLDB_API SBCommunication; @@ -36,6 +36,7 @@ class LLDB_API SBCompileUnit; class LLDB_API SBData; class LLDB_API SBDebugger; class LLDB_API SBDeclaration; +class LLDB_API SBEnvironment; class LLDB_API SBError; class LLDB_API SBEvent; class LLDB_API SBEventList; @@ -99,4 +100,4 @@ typedef bool (*SBBreakpointHitCallback)(void *baton, SBProcess &process, lldb::SBBreakpointLocation &location); } -#endif // LLDB_SBDefines_h_ +#endif // LLDB_API_SBDEFINES_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBEnvironment.h b/contrib/llvm-project/lldb/include/lldb/API/SBEnvironment.h new file mode 100644 index 000000000000..f40ee01a42ab --- /dev/null +++ b/contrib/llvm-project/lldb/include/lldb/API/SBEnvironment.h @@ -0,0 +1,137 @@ +//===-- SBEnvironment.h -----------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLDB_API_SBENVIRONMENT_H +#define LLDB_API_SBENVIRONMENT_H + +#include "lldb/API/SBDefines.h" + +namespace lldb { + +class LLDB_API SBEnvironment { +public: + SBEnvironment(); + + SBEnvironment(const lldb::SBEnvironment &rhs); + + ~SBEnvironment(); + + const lldb::SBEnvironment &operator=(const lldb::SBEnvironment &rhs); + + /// Return the value of a given environment variable. + /// + /// \param [in] name + /// The name of the environment variable. + /// + /// \return + /// The value of the environment variable or null if not present. + /// If the environment variable has no value but is present, a valid + /// pointer to an empty string will be returned. + const char *Get(const char *name); + + /// \return + /// The number of environment variables. + size_t GetNumValues(); + + /// Return the name of the environment variable at a given index from the + /// internal list of environment variables. + /// + /// \param [in] index + /// The index of the environment variable in the internal list. + /// + /// \return + /// The name at the given index or null if the index is invalid. + const char *GetNameAtIndex(size_t index); + + /// Return the value of the environment variable at a given index from the + /// internal list of environment variables. + /// + /// \param [in] index + /// The index of the environment variable in the internal list. + /// + /// \return + /// The value at the given index or null if the index is invalid. + /// If the environment variable has no value but is present, a valid + /// pointer to an empty string will be returned. + const char *GetValueAtIndex(size_t index); + + /// Return all environment variables contained in this object. Each variable + /// is returned as a string with the following format + /// name=value + /// + /// \return + /// Return an lldb::SBStringList object with the environment variables. + SBStringList GetEntries(); + + /// Add or replace an existing environment variable. The input must be a + /// string with the format + /// name=value + /// + /// \param [in] name_and_value + /// The entry to set which conforms to the format mentioned above. + void PutEntry(const char *name_and_value); + + /// Update this object with the given environment variables. The input is a + /// list of entries with the same format required by SBEnvironment::PutEntry. + /// + /// If append is false, the provided environment will replace the existing + /// environment. Otherwise, existing values will be updated of left untouched + /// accordingly. + /// + /// \param [in] entries + /// The environment variable entries. + /// + /// \param [in] append + /// Flag that controls whether to replace the existing environment. + void SetEntries(const SBStringList &entries, bool append); + + /// Set the value of a given environment variable. + /// If the variable exists, its value is updated only if overwrite is true. + /// + /// \param [in] name + /// The name of the environment variable to set. + /// + /// \param [in] value + /// The value of the environment variable to set. + /// + /// \param [in] overwrite + /// Flag that indicates whether to overwrite an existing environment + /// variable. + /// + /// \return + /// Return whether the variable was added or modified. + bool Set(const char *name, const char *value, bool overwrite); + + /// Unset an environment variable if exists. + /// + /// \param [in] name + /// The name of the environment variable to unset. + /// + /// \return + /// Return whether a variable was actually unset. + bool Unset(const char *name); + + /// Delete all the environment variables. + void Clear(); + +protected: + friend class SBPlatform; + friend class SBTarget; + friend class SBLaunchInfo; + + SBEnvironment(lldb_private::Environment rhs); + + lldb_private::Environment &ref() const; + +private: + std::unique_ptr<lldb_private::Environment> m_opaque_up; +}; + +} // namespace lldb + +#endif // LLDB_API_SBENVIRONMENT_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBError.h b/contrib/llvm-project/lldb/include/lldb/API/SBError.h index 3db2658d9fb7..e1960ef9a983 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBError.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBError.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBError_h_ -#define LLDB_SBError_h_ +#ifndef LLDB_API_SBERROR_H +#define LLDB_API_SBERROR_H #include "lldb/API/SBDefines.h" @@ -90,4 +90,4 @@ private: } // namespace lldb -#endif // LLDB_SBError_h_ +#endif // LLDB_API_SBERROR_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBEvent.h b/contrib/llvm-project/lldb/include/lldb/API/SBEvent.h index d297cbeff671..a7975bf9abae 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBEvent.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBEvent.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBEvent_h_ -#define LLDB_SBEvent_h_ +#ifndef LLDB_API_SBEVENT_H +#define LLDB_API_SBEVENT_H #include "lldb/API/SBDefines.h" @@ -84,4 +84,4 @@ private: } // namespace lldb -#endif // LLDB_SBEvent_h_ +#endif // LLDB_API_SBEVENT_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBExecutionContext.h b/contrib/llvm-project/lldb/include/lldb/API/SBExecutionContext.h index 45c0b1b7f97b..d8447aeb1a2f 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBExecutionContext.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBExecutionContext.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBExecutionContext_h_ -#define LLDB_SBExecutionContext_h_ +#ifndef LLDB_API_SBEXECUTIONCONTEXT_H +#define LLDB_API_SBEXECUTIONCONTEXT_H #include "lldb/API/SBDefines.h" @@ -60,4 +60,4 @@ private: } // namespace lldb -#endif // LLDB_SBExecutionContext_h_ +#endif // LLDB_API_SBEXECUTIONCONTEXT_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBExpressionOptions.h b/contrib/llvm-project/lldb/include/lldb/API/SBExpressionOptions.h index 04cd74f730f2..9fc6e9ea957e 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBExpressionOptions.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBExpressionOptions.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBExpressionOptions_h_ -#define LLDB_SBExpressionOptions_h_ +#ifndef LLDB_API_SBEXPRESSIONOPTIONS_H +#define LLDB_API_SBEXPRESSIONOPTIONS_H #include "lldb/API/SBDefines.h" @@ -86,6 +86,10 @@ public: bool GetAutoApplyFixIts(); + void SetRetriesWithFixIts(uint64_t retries); + + uint64_t GetRetriesWithFixIts(); + bool GetTopLevel(); void SetTopLevel(bool b = true); @@ -112,4 +116,4 @@ private: } // namespace lldb -#endif // LLDB_SBExpressionOptions_h_ +#endif // LLDB_API_SBEXPRESSIONOPTIONS_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBFile.h b/contrib/llvm-project/lldb/include/lldb/API/SBFile.h index 7d6c14809923..a8b16520332d 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBFile.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBFile.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBFile_h_ -#define LLDB_SBFile_h_ +#ifndef LLDB_API_SBFILE_H +#define LLDB_API_SBFILE_H #include "lldb/API/SBDefines.h" @@ -23,10 +23,13 @@ class LLDB_API SBFile { public: SBFile(); SBFile(FileSP file_sp); + SBFile(const SBFile &rhs); SBFile(FILE *file, bool transfer_ownership); SBFile(int fd, const char *mode, bool transfer_ownership); ~SBFile(); + SBFile &operator=(const SBFile &rhs); + SBError Read(uint8_t *buf, size_t num_bytes, size_t *bytes_read); SBError Write(const uint8_t *buf, size_t num_bytes, size_t *bytes_written); SBError Flush(); @@ -44,4 +47,4 @@ private: } // namespace lldb -#endif // LLDB_SBFile_h_ +#endif // LLDB_API_SBFILE_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBFileSpec.h b/contrib/llvm-project/lldb/include/lldb/API/SBFileSpec.h index 27149775901e..a2f02ac78208 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBFileSpec.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBFileSpec.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBFileSpec_h_ -#define LLDB_SBFileSpec_h_ +#ifndef LLDB_API_SBFILESPEC_H +#define LLDB_API_SBFILESPEC_H #include "lldb/API/SBDefines.h" @@ -92,4 +92,4 @@ private: } // namespace lldb -#endif // LLDB_SBFileSpec_h_ +#endif // LLDB_API_SBFILESPEC_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBFileSpecList.h b/contrib/llvm-project/lldb/include/lldb/API/SBFileSpecList.h index 5a131509d269..1a654865a307 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBFileSpecList.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBFileSpecList.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBFileSpecList_h_ -#define LLDB_SBFileSpecList_h_ +#ifndef LLDB_API_SBFILESPECLIST_H +#define LLDB_API_SBFILESPECLIST_H #include "lldb/API/SBDefines.h" @@ -54,4 +54,4 @@ private: } // namespace lldb -#endif // LLDB_SBFileSpecList_h_ +#endif // LLDB_API_SBFILESPECLIST_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBFrame.h b/contrib/llvm-project/lldb/include/lldb/API/SBFrame.h index b213f8985510..2e368accbbb5 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBFrame.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBFrame.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBFrame_h_ -#define LLDB_SBFrame_h_ +#ifndef LLDB_API_SBFRAME_H +#define LLDB_API_SBFRAME_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBValueList.h" @@ -202,4 +202,4 @@ protected: } // namespace lldb -#endif // LLDB_SBFrame_h_ +#endif // LLDB_API_SBFRAME_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBFunction.h b/contrib/llvm-project/lldb/include/lldb/API/SBFunction.h index 43f01d7e57de..bd643a62206f 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBFunction.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBFunction.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBFunction_h_ -#define LLDB_SBFunction_h_ +#ifndef LLDB_API_SBFUNCTION_H +#define LLDB_API_SBFUNCTION_H #include "lldb/API/SBAddress.h" #include "lldb/API/SBDefines.h" @@ -79,4 +79,4 @@ private: } // namespace lldb -#endif // LLDB_SBFunction_h_ +#endif // LLDB_API_SBFUNCTION_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBHostOS.h b/contrib/llvm-project/lldb/include/lldb/API/SBHostOS.h index ecd7920f2c14..b170f8d65810 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBHostOS.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBHostOS.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBHostOS_h_ -#define LLDB_SBHostOS_h_ +#ifndef LLDB_API_SBHOSTOS_H +#define LLDB_API_SBHOSTOS_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBFileSpec.h" @@ -41,4 +41,4 @@ private: } // namespace lldb -#endif // LLDB_SBHostOS_h_ +#endif // LLDB_API_SBHOSTOS_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBInstruction.h b/contrib/llvm-project/lldb/include/lldb/API/SBInstruction.h index 7d83a37ba5d6..7d07e168cf03 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBInstruction.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBInstruction.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBInstruction_h_ -#define LLDB_SBInstruction_h_ +#ifndef LLDB_API_SBINSTRUCTION_H +#define LLDB_API_SBINSTRUCTION_H #include "lldb/API/SBData.h" #include "lldb/API/SBDefines.h" @@ -86,4 +86,4 @@ private: } // namespace lldb -#endif // LLDB_SBInstruction_h_ +#endif // LLDB_API_SBINSTRUCTION_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBInstructionList.h b/contrib/llvm-project/lldb/include/lldb/API/SBInstructionList.h index e203d0b80564..ae8988004e26 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBInstructionList.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBInstructionList.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBInstructionList_h_ -#define LLDB_SBInstructionList_h_ +#ifndef LLDB_API_SBINSTRUCTIONLIST_H +#define LLDB_API_SBINSTRUCTIONLIST_H #include "lldb/API/SBDefines.h" @@ -69,4 +69,4 @@ private: } // namespace lldb -#endif // LLDB_SBInstructionList_h_ +#endif // LLDB_API_SBINSTRUCTIONLIST_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBLanguageRuntime.h b/contrib/llvm-project/lldb/include/lldb/API/SBLanguageRuntime.h index d28c441593ea..38aac05d490c 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBLanguageRuntime.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBLanguageRuntime.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBLanguageRuntime_h_ -#define LLDB_SBLanguageRuntime_h_ +#ifndef LLDB_API_SBLANGUAGERUNTIME_H +#define LLDB_API_SBLANGUAGERUNTIME_H #include "lldb/API/SBDefines.h" @@ -22,4 +22,4 @@ public: } // namespace lldb -#endif // LLDB_SBLanguageRuntime_h_ +#endif // LLDB_API_SBLANGUAGERUNTIME_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBLaunchInfo.h b/contrib/llvm-project/lldb/include/lldb/API/SBLaunchInfo.h index c7b381ffdf97..04ebb5707688 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBLaunchInfo.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBLaunchInfo.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBLaunchInfo_h_ -#define LLDB_SBLaunchInfo_h_ +#ifndef LLDB_API_SBLAUNCHINFO_H +#define LLDB_API_SBLAUNCHINFO_H #include "lldb/API/SBDefines.h" @@ -26,6 +26,10 @@ public: ~SBLaunchInfo(); + SBLaunchInfo(const SBLaunchInfo &rhs); + + SBLaunchInfo &operator=(const SBLaunchInfo &rhs); + lldb::pid_t GetProcessID(); uint32_t GetUserID(); @@ -90,8 +94,41 @@ public: const char *GetEnvironmentEntryAtIndex(uint32_t idx); + /// Update this object with the given environment variables. + /// + /// If append is false, the provided environment will replace the existing + /// environment. Otherwise, existing values will be updated of left untouched + /// accordingly. + /// + /// \param [in] envp + /// The new environment variables as a list of strings with the following + /// format + /// name=value + /// + /// \param [in] append + /// Flag that controls whether to replace the existing environment. void SetEnvironmentEntries(const char **envp, bool append); + /// Update this object with the given environment variables. + /// + /// If append is false, the provided environment will replace the existing + /// environment. Otherwise, existing values will be updated of left untouched + /// accordingly. + /// + /// \param [in] env + /// The new environment variables. + /// + /// \param [in] append + /// Flag that controls whether to replace the existing environment. + void SetEnvironment(const SBEnvironment &env, bool append); + + /// Return the environment variables of this object. + /// + /// \return + /// An lldb::SBEnvironment object which is a copy of the SBLaunchInfo's + /// environment. + SBEnvironment GetEnvironment(); + void Clear(); const char *GetWorkingDirectory() const; @@ -146,4 +183,4 @@ protected: } // namespace lldb -#endif // LLDB_SBLaunchInfo_h_ +#endif // LLDB_API_SBLAUNCHINFO_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBLineEntry.h b/contrib/llvm-project/lldb/include/lldb/API/SBLineEntry.h index 855c28d14b83..7c2431ba3c8a 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBLineEntry.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBLineEntry.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBLineEntry_h_ -#define LLDB_SBLineEntry_h_ +#ifndef LLDB_API_SBLINEENTRY_H +#define LLDB_API_SBLINEENTRY_H #include "lldb/API/SBAddress.h" #include "lldb/API/SBDefines.h" @@ -75,4 +75,4 @@ private: } // namespace lldb -#endif // LLDB_SBLineEntry_h_ +#endif // LLDB_API_SBLINEENTRY_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBListener.h b/contrib/llvm-project/lldb/include/lldb/API/SBListener.h index 21aface97bd1..2144e7956b13 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBListener.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBListener.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBListener_h_ -#define LLDB_SBListener_h_ +#ifndef LLDB_API_SBLISTENER_H +#define LLDB_API_SBLISTENER_H #include "lldb/API/SBDefines.h" @@ -105,4 +105,4 @@ private: } // namespace lldb -#endif // LLDB_SBListener_h_ +#endif // LLDB_API_SBLISTENER_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBMemoryRegionInfo.h b/contrib/llvm-project/lldb/include/lldb/API/SBMemoryRegionInfo.h index 2a9ae94218f2..d82c70606559 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBMemoryRegionInfo.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBMemoryRegionInfo.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBMemoryRegionInfo_h_ -#define LLDB_SBMemoryRegionInfo_h_ +#ifndef LLDB_API_SBMEMORYREGIONINFO_H +#define LLDB_API_SBMEMORYREGIONINFO_H #include "lldb/API/SBData.h" #include "lldb/API/SBDefines.h" @@ -95,4 +95,4 @@ private: } // namespace lldb -#endif // LLDB_SBMemoryRegionInfo_h_ +#endif // LLDB_API_SBMEMORYREGIONINFO_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBMemoryRegionInfoList.h b/contrib/llvm-project/lldb/include/lldb/API/SBMemoryRegionInfoList.h index 5592efef4851..a7122ee9108a 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBMemoryRegionInfoList.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBMemoryRegionInfoList.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBMemoryRegionInfoList_h_ -#define LLDB_SBMemoryRegionInfoList_h_ +#ifndef LLDB_API_SBMEMORYREGIONINFOLIST_H +#define LLDB_API_SBMEMORYREGIONINFOLIST_H #include "lldb/API/SBDefines.h" @@ -52,4 +52,4 @@ private: } // namespace lldb -#endif // LLDB_SBMemoryRegionInfoList_h_ +#endif // LLDB_API_SBMEMORYREGIONINFOLIST_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBModule.h b/contrib/llvm-project/lldb/include/lldb/API/SBModule.h index d2b6a18db84d..859eaffe89a0 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBModule.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBModule.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBModule_h_ -#define LLDB_SBModule_h_ +#ifndef LLDB_API_SBMODULE_H +#define LLDB_API_SBMODULE_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBError.h" @@ -288,6 +288,9 @@ public: lldb::SBAddress GetObjectFileHeaderAddress() const; lldb::SBAddress GetObjectFileEntryPointAddress() const; + /// Get the number of global modules. + static uint32_t GetNumberAllocatedModules(); + private: friend class SBAddress; friend class SBFrame; @@ -306,4 +309,4 @@ private: } // namespace lldb -#endif // LLDB_SBModule_h_ +#endif // LLDB_API_SBMODULE_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBModuleSpec.h b/contrib/llvm-project/lldb/include/lldb/API/SBModuleSpec.h index 29b3117a261d..7529879b78b5 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBModuleSpec.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBModuleSpec.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBModuleSpec_h_ -#define LLDB_SBModuleSpec_h_ +#ifndef LLDB_API_SBMODULESPEC_H +#define LLDB_API_SBMODULESPEC_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBFileSpec.h" @@ -119,4 +119,4 @@ private: } // namespace lldb -#endif // LLDB_SBModuleSpec_h_ +#endif // LLDB_API_SBMODULESPEC_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBPlatform.h b/contrib/llvm-project/lldb/include/lldb/API/SBPlatform.h index 7207b2e2a78d..4d251b129954 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBPlatform.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBPlatform.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBPlatform_h_ -#define LLDB_SBPlatform_h_ +#ifndef LLDB_API_SBPLATFORM_H +#define LLDB_API_SBPLATFORM_H #include "lldb/API/SBDefines.h" @@ -28,7 +28,7 @@ public: ~SBPlatformConnectOptions(); - void operator=(const SBPlatformConnectOptions &rhs); + SBPlatformConnectOptions &operator=(const SBPlatformConnectOptions &rhs); const char *GetURL(); @@ -55,6 +55,8 @@ public: SBPlatformShellCommand(const SBPlatformShellCommand &rhs); + SBPlatformShellCommand &operator=(const SBPlatformShellCommand &rhs); + ~SBPlatformShellCommand(); void Clear(); @@ -89,8 +91,14 @@ public: SBPlatform(const char *platform_name); + SBPlatform(const SBPlatform &rhs); + + SBPlatform &operator=(const SBPlatform &rhs); + ~SBPlatform(); + static SBPlatform GetHostPlatform(); + explicit operator bool() const; bool IsValid() const; @@ -146,6 +154,14 @@ public: SBUnixSignals GetUnixSignals() const; + /// Return the environment variables of the remote platform connection + /// process. + /// + /// \return + /// An lldb::SBEnvironment object which is a copy of the platform's + /// environment. + SBEnvironment GetEnvironment(); + protected: friend class SBDebugger; friend class SBTarget; @@ -163,4 +179,4 @@ protected: } // namespace lldb -#endif // LLDB_SBPlatform_h_ +#endif // LLDB_API_SBPLATFORM_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBProcess.h b/contrib/llvm-project/lldb/include/lldb/API/SBProcess.h index 8ab8bfa3a93e..a90ec2a29a39 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBProcess.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBProcess.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBProcess_h_ -#define LLDB_SBProcess_h_ +#ifndef LLDB_API_SBPROCESS_H +#define LLDB_API_SBPROCESS_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBError.h" @@ -222,6 +222,8 @@ public: bool GetDescription(lldb::SBStream &description); + SBStructuredData GetExtendedCrashInformation(); + /// Start Tracing with the given SBTraceOptions. /// /// \param[in] options @@ -416,4 +418,4 @@ protected: } // namespace lldb -#endif // LLDB_SBProcess_h_ +#endif // LLDB_API_SBPROCESS_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBProcessInfo.h b/contrib/llvm-project/lldb/include/lldb/API/SBProcessInfo.h index 86dba9a8e116..0cc5f6a2f9f6 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBProcessInfo.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBProcessInfo.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBProcessInfo_h_ -#define LLDB_SBProcessInfo_h_ +#ifndef LLDB_API_SBPROCESSINFO_H +#define LLDB_API_SBPROCESSINFO_H #include "lldb/API/SBDefines.h" @@ -62,4 +62,4 @@ private: } // namespace lldb -#endif // LLDB_SBProcessInfo_h_ +#endif // LLDB_API_SBPROCESSINFO_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBQueue.h b/contrib/llvm-project/lldb/include/lldb/API/SBQueue.h index 0124c1c90dd2..c563f3ee1c20 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBQueue.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBQueue.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBQueue_h_ -#define LLDB_SBQueue_h_ +#ifndef LLDB_API_SBQUEUE_H +#define LLDB_API_SBQUEUE_H #include <vector> @@ -66,4 +66,4 @@ private: } // namespace lldb -#endif // LLDB_SBQueue_h_ +#endif // LLDB_API_SBQUEUE_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBQueueItem.h b/contrib/llvm-project/lldb/include/lldb/API/SBQueueItem.h index 455a1f98379a..435dafe534a6 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBQueueItem.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBQueueItem.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBQueueItem_h_ -#define LLDB_SBQueueItem_h_ +#ifndef LLDB_API_SBQUEUEITEM_H +#define LLDB_API_SBQUEUEITEM_H #include "lldb/API/SBAddress.h" #include "lldb/API/SBDefines.h" @@ -46,4 +46,4 @@ private: } // namespace lldb -#endif // LLDB_SBQueueItem_h_ +#endif // LLDB_API_SBQUEUEITEM_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBReproducer.h b/contrib/llvm-project/lldb/include/lldb/API/SBReproducer.h index 93d78f55fd76..78044e9acbc3 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBReproducer.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBReproducer.h @@ -22,8 +22,17 @@ public: static const char *Capture(const char *path); static const char *Replay(const char *path); static const char *Replay(const char *path, bool skip_version_check); + static const char *PassiveReplay(const char *path); static const char *GetPath(); + static bool SetAutoGenerate(bool b); static bool Generate(); + + /// The working directory is set to the current working directory when the + /// reproducers are initialized. This method allows setting a different + /// working directory. This is used by the API test suite which temporarily + /// changes the directory to where the test lives. This is a NO-OP in every + /// mode but capture. + static void SetWorkingDirectory(const char *path); }; } // namespace lldb diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBSection.h b/contrib/llvm-project/lldb/include/lldb/API/SBSection.h index 06a195ee78df..d722dbe4ff1f 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBSection.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBSection.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBSection_h_ -#define LLDB_SBSection_h_ +#ifndef LLDB_API_SBSECTION_H +#define LLDB_API_SBSECTION_H #include "lldb/API/SBData.h" #include "lldb/API/SBDefines.h" @@ -98,4 +98,4 @@ private: } // namespace lldb -#endif // LLDB_SBSection_h_ +#endif // LLDB_API_SBSECTION_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBSourceManager.h b/contrib/llvm-project/lldb/include/lldb/API/SBSourceManager.h index 3d69aa25a934..c8302dbda3c0 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBSourceManager.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBSourceManager.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBSourceManager_h_ -#define LLDB_SBSourceManager_h_ +#ifndef LLDB_API_SBSOURCEMANAGER_H +#define LLDB_API_SBSOURCEMANAGER_H #include "lldb/API/SBDefines.h" @@ -44,4 +44,4 @@ private: } // namespace lldb -#endif // LLDB_SBSourceManager_h_ +#endif // LLDB_API_SBSOURCEMANAGER_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBStream.h b/contrib/llvm-project/lldb/include/lldb/API/SBStream.h index b78c498e5f3d..f44b87bb4c98 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBStream.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBStream.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBStream_h_ -#define LLDB_SBStream_h_ +#ifndef LLDB_API_SBSTREAM_H +#define LLDB_API_SBSTREAM_H #include <stdio.h> @@ -37,6 +37,8 @@ public: void Printf(const char *format, ...) __attribute__((format(printf, 2, 3))); + void Print(const char *str); + void RedirectToFile(const char *path, bool append); void RedirectToFile(lldb::SBFile file); @@ -99,11 +101,12 @@ protected: lldb_private::Stream &ref(); private: - DISALLOW_COPY_AND_ASSIGN(SBStream); + SBStream(const SBStream &) = delete; + const SBStream &operator=(const SBStream &) = delete; std::unique_ptr<lldb_private::Stream> m_opaque_up; bool m_is_file; }; } // namespace lldb -#endif // LLDB_SBStream_h_ +#endif // LLDB_API_SBSTREAM_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBStringList.h b/contrib/llvm-project/lldb/include/lldb/API/SBStringList.h index 1df1e45f96fe..4842c162bd6e 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBStringList.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBStringList.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBStringList_h_ -#define LLDB_SBStringList_h_ +#ifndef LLDB_API_SBSTRINGLIST_H +#define LLDB_API_SBSTRINGLIST_H #include "lldb/API/SBDefines.h" @@ -62,4 +62,4 @@ private: } // namespace lldb -#endif // LLDB_SBStringList_h_ +#endif // LLDB_API_SBSTRINGLIST_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBStructuredData.h b/contrib/llvm-project/lldb/include/lldb/API/SBStructuredData.h index 785e91047fdf..44a86bdabe25 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBStructuredData.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBStructuredData.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef SBStructuredData_h -#define SBStructuredData_h +#ifndef LLDB_API_SBSTRUCTUREDDATA_H +#define LLDB_API_SBSTRUCTUREDDATA_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBModule.h" @@ -91,6 +91,7 @@ protected: friend class SBTraceOptions; friend class SBDebugger; friend class SBTarget; + friend class SBProcess; friend class SBThread; friend class SBThreadPlan; friend class SBBreakpoint; @@ -101,4 +102,4 @@ protected: }; } // namespace lldb -#endif /* SBStructuredData_h */ +#endif // LLDB_API_SBSTRUCTUREDDATA_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBSymbol.h b/contrib/llvm-project/lldb/include/lldb/API/SBSymbol.h index 52486b83d1a7..66f73c82a73a 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBSymbol.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBSymbol.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBSymbol_h_ -#define LLDB_SBSymbol_h_ +#ifndef LLDB_API_SBSYMBOL_H +#define LLDB_API_SBSYMBOL_H #include "lldb/API/SBAddress.h" #include "lldb/API/SBDefines.h" @@ -83,4 +83,4 @@ private: } // namespace lldb -#endif // LLDB_SBSymbol_h_ +#endif // LLDB_API_SBSYMBOL_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBSymbolContext.h b/contrib/llvm-project/lldb/include/lldb/API/SBSymbolContext.h index 3d16d0989ca1..16ad29ea8730 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBSymbolContext.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBSymbolContext.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBSymbolContext_h_ -#define LLDB_SBSymbolContext_h_ +#ifndef LLDB_API_SBSYMBOLCONTEXT_H +#define LLDB_API_SBSYMBOLCONTEXT_H #include "lldb/API/SBBlock.h" #include "lldb/API/SBCompileUnit.h" @@ -80,4 +80,4 @@ private: } // namespace lldb -#endif // LLDB_SBSymbolContext_h_ +#endif // LLDB_API_SBSYMBOLCONTEXT_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBSymbolContextList.h b/contrib/llvm-project/lldb/include/lldb/API/SBSymbolContextList.h index 577993ce96dd..4026afc21357 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBSymbolContextList.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBSymbolContextList.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBSymbolContextList_h_ -#define LLDB_SBSymbolContextList_h_ +#ifndef LLDB_API_SBSYMBOLCONTEXTLIST_H +#define LLDB_API_SBSYMBOLCONTEXTLIST_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBSymbolContext.h" @@ -55,4 +55,4 @@ private: } // namespace lldb -#endif // LLDB_SBSymbolContextList_h_ +#endif // LLDB_API_SBSYMBOLCONTEXTLIST_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTarget.h b/contrib/llvm-project/lldb/include/lldb/API/SBTarget.h index 80a7fa00dbc5..fad842c9cb1c 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTarget.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTarget.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTarget_h_ -#define LLDB_SBTarget_h_ +#ifndef LLDB_API_SBTARGET_H +#define LLDB_API_SBTARGET_H #include "lldb/API/SBAddress.h" #include "lldb/API/SBAttachInfo.h" @@ -94,6 +94,15 @@ public: /// A platform object. lldb::SBPlatform GetPlatform(); + /// Return the environment variables that would be used to launch a new + /// process. + /// + /// \return + /// An lldb::SBEnvironment object which is a copy of the target's + /// environment. + + SBEnvironment GetEnvironment(); + /// Install any binaries that need to be installed. /// /// This function does nothing when debugging on the host system. @@ -127,7 +136,9 @@ public: /// The argument array. /// /// \param[in] envp - /// The environment array. + /// The environment array. If this is null, the default + /// environment values (provided through `settings set + /// target.env-vars`) will be used. /// /// \param[in] stdin_path /// The path to use when re-directing the STDIN of the new @@ -175,7 +186,9 @@ public: /// The argument array. /// /// \param[in] envp - /// The environment array. + /// The environment array. If this isn't provided, the default + /// environment values (provided through `settings set + /// target.env-vars`) will be used. /// /// \param[in] working_directory /// The working directory to have the child process run in @@ -829,6 +842,7 @@ protected: friend class SBFunction; friend class SBInstruction; friend class SBModule; + friend class SBPlatform; friend class SBProcess; friend class SBSection; friend class SBSourceManager; @@ -849,4 +863,4 @@ private: } // namespace lldb -#endif // LLDB_SBTarget_h_ +#endif // LLDB_API_SBTARGET_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBThread.h b/contrib/llvm-project/lldb/include/lldb/API/SBThread.h index b5f1794f9fe0..894120c6d986 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBThread.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBThread.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBThread_h_ -#define LLDB_SBThread_h_ +#ifndef LLDB_API_SBTHREAD_H +#define LLDB_API_SBTHREAD_H #include "lldb/API/SBDefines.h" @@ -232,4 +232,4 @@ private: } // namespace lldb -#endif // LLDB_SBThread_h_ +#endif // LLDB_API_SBTHREAD_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBThreadCollection.h b/contrib/llvm-project/lldb/include/lldb/API/SBThreadCollection.h index 1c6b4639c6ef..fe57a6b95d90 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBThreadCollection.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBThreadCollection.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBThreadCollection_h_ -#define LLDB_SBThreadCollection_h_ +#ifndef LLDB_API_SBTHREADCOLLECTION_H +#define LLDB_API_SBTHREADCOLLECTION_H #include "lldb/API/SBDefines.h" @@ -54,4 +54,4 @@ private: } // namespace lldb -#endif // LLDB_SBThreadCollection_h_ +#endif // LLDB_API_SBTHREADCOLLECTION_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBThreadPlan.h b/contrib/llvm-project/lldb/include/lldb/API/SBThreadPlan.h index dbe417e63749..8f16f4f5c4d2 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBThreadPlan.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBThreadPlan.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBThreadPlan_h_ -#define LLDB_SBThreadPlan_h_ +#ifndef LLDB_API_SBTHREADPLAN_H +#define LLDB_API_SBTHREADPLAN_H #include "lldb/API/SBDefines.h" @@ -125,4 +125,4 @@ private: } // namespace lldb -#endif // LLDB_SBThreadPlan_h_ +#endif // LLDB_API_SBTHREADPLAN_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTrace.h b/contrib/llvm-project/lldb/include/lldb/API/SBTrace.h index 87c67adac75b..053abaeada19 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTrace.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTrace.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTrace_h_ -#define LLDB_SBTrace_h_ +#ifndef LLDB_API_SBTRACE_H +#define LLDB_API_SBTRACE_H #include "lldb/API/SBDefines.h" #include "lldb/API/SBError.h" @@ -113,4 +113,4 @@ protected: }; } // namespace lldb -#endif // LLDB_SBTrace_h_ +#endif // LLDB_API_SBTRACE_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTraceOptions.h b/contrib/llvm-project/lldb/include/lldb/API/SBTraceOptions.h index 4c586bfd55c4..22d71fbd3828 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTraceOptions.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTraceOptions.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef SBTRACEOPTIONS_H_ -#define SBTRACEOPTIONS_H_ +#ifndef LLDB_API_SBTRACEOPTIONS_H +#define LLDB_API_SBTRACEOPTIONS_H #include "lldb/API/SBDefines.h" @@ -56,4 +56,4 @@ protected: }; } -#endif /* SBTRACEOPTIONS_H_ */ +#endif // LLDB_API_SBTRACEOPTIONS_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBType.h b/contrib/llvm-project/lldb/include/lldb/API/SBType.h index b3f92b7bcd04..b0af43351192 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBType.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBType.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBType_h_ -#define LLDB_SBType_h_ +#ifndef LLDB_API_SBTYPE_H +#define LLDB_API_SBTYPE_H #include "lldb/API/SBDefines.h" @@ -259,4 +259,4 @@ private: } // namespace lldb -#endif // LLDB_SBType_h_ +#endif // LLDB_API_SBTYPE_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTypeCategory.h b/contrib/llvm-project/lldb/include/lldb/API/SBTypeCategory.h index c0f4cee1d268..ee1c0f6910ee 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTypeCategory.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTypeCategory.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTypeCategory_h_ -#define LLDB_SBTypeCategory_h_ +#ifndef LLDB_API_SBTYPECATEGORY_H +#define LLDB_API_SBTYPECATEGORY_H #include "lldb/API/SBDefines.h" @@ -113,4 +113,4 @@ protected: } // namespace lldb -#endif // LLDB_SBTypeCategory_h_ +#endif // LLDB_API_SBTYPECATEGORY_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTypeEnumMember.h b/contrib/llvm-project/lldb/include/lldb/API/SBTypeEnumMember.h index 2410dbcc2125..45f8cc6638b4 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTypeEnumMember.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTypeEnumMember.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTypeEnumMember_h_ -#define LLDB_SBTypeEnumMember_h_ +#ifndef LLDB_API_SBTYPEENUMMEMBER_H +#define LLDB_API_SBTYPEENUMMEMBER_H #include "lldb/API/SBDefines.h" @@ -80,4 +80,4 @@ private: } // namespace lldb -#endif // LLDB_SBTypeEnumMember_h_ +#endif // LLDB_API_SBTYPEENUMMEMBER_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTypeFilter.h b/contrib/llvm-project/lldb/include/lldb/API/SBTypeFilter.h index 4a0de11d19c4..5f02e231d12f 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTypeFilter.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTypeFilter.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTypeFilter_h_ -#define LLDB_SBTypeFilter_h_ +#ifndef LLDB_API_SBTYPEFILTER_H +#define LLDB_API_SBTYPEFILTER_H #include "lldb/API/SBDefines.h" @@ -71,4 +71,4 @@ protected: } // namespace lldb -#endif // LLDB_SBTypeFilter_h_ +#endif // LLDB_API_SBTYPEFILTER_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTypeFormat.h b/contrib/llvm-project/lldb/include/lldb/API/SBTypeFormat.h index 8a0ac77a1e9d..b34045927032 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTypeFormat.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTypeFormat.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTypeFormat_h_ -#define LLDB_SBTypeFormat_h_ +#ifndef LLDB_API_SBTYPEFORMAT_H +#define LLDB_API_SBTYPEFORMAT_H #include "lldb/API/SBDefines.h" @@ -75,4 +75,4 @@ protected: } // namespace lldb -#endif // LLDB_SBTypeFormat_h_ +#endif // LLDB_API_SBTYPEFORMAT_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTypeNameSpecifier.h b/contrib/llvm-project/lldb/include/lldb/API/SBTypeNameSpecifier.h index 9fe449d029c6..eee424c1710a 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTypeNameSpecifier.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTypeNameSpecifier.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTypeNameSpecifier_h_ -#define LLDB_SBTypeNameSpecifier_h_ +#ifndef LLDB_API_SBTYPENAMESPECIFIER_H +#define LLDB_API_SBTYPENAMESPECIFIER_H #include "lldb/API/SBDefines.h" @@ -62,4 +62,4 @@ protected: } // namespace lldb -#endif // LLDB_SBTypeNameSpecifier_h_ +#endif // LLDB_API_SBTYPENAMESPECIFIER_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTypeSummary.h b/contrib/llvm-project/lldb/include/lldb/API/SBTypeSummary.h index bb7121f8ae40..929bfb6124b2 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTypeSummary.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTypeSummary.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTypeSummary_h_ -#define LLDB_SBTypeSummary_h_ +#ifndef LLDB_API_SBTYPESUMMARY_H +#define LLDB_API_SBTYPESUMMARY_H #include "lldb/API/SBDefines.h" @@ -136,4 +136,4 @@ protected: } // namespace lldb -#endif // LLDB_SBTypeSummary_h_ +#endif // LLDB_API_SBTYPESUMMARY_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBTypeSynthetic.h b/contrib/llvm-project/lldb/include/lldb/API/SBTypeSynthetic.h index c190643c1ebb..9dab9d851f08 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBTypeSynthetic.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBTypeSynthetic.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBTypeSynthetic_h_ -#define LLDB_SBTypeSynthetic_h_ +#ifndef LLDB_API_SBTYPESYNTHETIC_H +#define LLDB_API_SBTYPESYNTHETIC_H #include "lldb/API/SBDefines.h" @@ -77,4 +77,4 @@ protected: } // namespace lldb -#endif // LLDB_SBTypeSynthetic_h_ +#endif // LLDB_API_SBTYPESYNTHETIC_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBUnixSignals.h b/contrib/llvm-project/lldb/include/lldb/API/SBUnixSignals.h index c7e99d1f63d1..9757eac7ee30 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBUnixSignals.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBUnixSignals.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBUnixSignals_h_ -#define LLDB_SBUnixSignals_h_ +#ifndef LLDB_API_SBUNIXSIGNALS_H +#define LLDB_API_SBUNIXSIGNALS_H #include "lldb/API/SBDefines.h" @@ -68,4 +68,4 @@ private: } // namespace lldb -#endif // LLDB_SBUnixSignals_h_ +#endif // LLDB_API_SBUNIXSIGNALS_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBValue.h b/contrib/llvm-project/lldb/include/lldb/API/SBValue.h index 5f8d17f8642f..69be02545b35 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBValue.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBValue.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBValue_h_ -#define LLDB_SBValue_h_ +#ifndef LLDB_API_SBVALUE_H +#define LLDB_API_SBVALUE_H #include "lldb/API/SBData.h" #include "lldb/API/SBDefines.h" @@ -430,4 +430,4 @@ private: } // namespace lldb -#endif // LLDB_SBValue_h_ +#endif // LLDB_API_SBVALUE_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBValueList.h b/contrib/llvm-project/lldb/include/lldb/API/SBValueList.h index d305b3564c2b..dc8389b75293 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBValueList.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBValueList.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBValueList_h_ -#define LLDB_SBValueList_h_ +#ifndef LLDB_API_SBVALUELIST_H +#define LLDB_API_SBVALUELIST_H #include "lldb/API/SBDefines.h" @@ -72,4 +72,4 @@ private: } // namespace lldb -#endif // LLDB_SBValueList_h_ +#endif // LLDB_API_SBVALUELIST_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBVariablesOptions.h b/contrib/llvm-project/lldb/include/lldb/API/SBVariablesOptions.h index e226ce4ae13b..53ab4b7e14f2 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBVariablesOptions.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBVariablesOptions.h @@ -7,8 +7,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBVariablesOptions_h_ -#define LLDB_SBVariablesOptions_h_ +#ifndef LLDB_API_SBVARIABLESOPTIONS_H +#define LLDB_API_SBVARIABLESOPTIONS_H #include "lldb/API/SBDefines.h" @@ -79,4 +79,4 @@ private: } // namespace lldb -#endif // LLDB_SBValue_h_ +#endif // LLDB_API_SBVARIABLESOPTIONS_H diff --git a/contrib/llvm-project/lldb/include/lldb/API/SBWatchpoint.h b/contrib/llvm-project/lldb/include/lldb/API/SBWatchpoint.h index 05ff0ca7e443..08c5faa3a928 100644 --- a/contrib/llvm-project/lldb/include/lldb/API/SBWatchpoint.h +++ b/contrib/llvm-project/lldb/include/lldb/API/SBWatchpoint.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef LLDB_SBWatchpoint_h_ -#define LLDB_SBWatchpoint_h_ +#ifndef LLDB_API_SBWATCHPOINT_H +#define LLDB_API_SBWATCHPOINT_H #include "lldb/API/SBDefines.h" @@ -82,4 +82,4 @@ private: } // namespace lldb -#endif // LLDB_SBWatchpoint_h_ +#endif // LLDB_API_SBWATCHPOINT_H |