summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
diff options
context:
space:
mode:
authorKate Stone <katherine.stone@apple.com>2016-09-06 20:57:50 +0000
committerKate Stone <katherine.stone@apple.com>2016-09-06 20:57:50 +0000
commitb9c1b51e45b845debb76d8658edabca70ca56079 (patch)
treedfcb5a13ef2b014202340f47036da383eaee74aa /lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
parentd5aa73376966339caad04013510626ec2e42c760 (diff)
downloadbcm5719-llvm-b9c1b51e45b845debb76d8658edabca70ca56079.tar.gz
bcm5719-llvm-b9c1b51e45b845debb76d8658edabca70ca56079.zip
*** This commit represents a complete reformatting of the LLDB source code
*** to conform to clang-format’s LLVM style. This kind of mass change has *** two obvious implications: Firstly, merging this particular commit into a downstream fork may be a huge effort. Alternatively, it may be worth merging all changes up to this commit, performing the same reformatting operation locally, and then discarding the merge for this particular commit. The commands used to accomplish this reformatting were as follows (with current working directory as the root of the repository): find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mm" \) -exec clang-format -i {} + find . -iname "*.py" -exec autopep8 --in-place --aggressive --aggressive {} + ; The version of clang-format used was 3.9.0, and autopep8 was 1.2.4. Secondly, “blame” style tools will generally point to this commit instead of a meaningful prior commit. There are alternatives available that will attempt to look through this change and find the appropriate prior commit. YMMV. llvm-svn: 280751
Diffstat (limited to 'lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h')
-rw-r--r--lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h248
1 files changed, 116 insertions, 132 deletions
diff --git a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
index faecf4cc5a2..d72aedfe848 100644
--- a/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
+++ b/lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.h
@@ -16,144 +16,128 @@
// Other libraries and framework includes
// Project includes
-#include "lldb/Host/FileSpec.h"
#include "Plugins/Platform/POSIX/PlatformPOSIX.h"
+#include "lldb/Host/FileSpec.h"
-class PlatformDarwin : public PlatformPOSIX
-{
+class PlatformDarwin : public PlatformPOSIX {
public:
- PlatformDarwin(bool is_host);
-
- ~PlatformDarwin() override;
-
- //------------------------------------------------------------
- // lldb_private::Platform functions
- //------------------------------------------------------------
- lldb_private::Error
- ResolveExecutable (const lldb_private::ModuleSpec &module_spec,
- lldb::ModuleSP &module_sp,
- const lldb_private::FileSpecList *module_search_paths_ptr) override;
-
- lldb_private::Error
- ResolveSymbolFile (lldb_private::Target &target,
- const lldb_private::ModuleSpec &sym_spec,
- lldb_private::FileSpec &sym_file) override;
-
- lldb_private::FileSpecList
- LocateExecutableScriptingResources (lldb_private::Target *target,
- lldb_private::Module &module,
- lldb_private::Stream* feedback_stream) override;
-
- lldb_private::Error
- GetSharedModule (const lldb_private::ModuleSpec &module_spec,
- lldb_private::Process* process,
- lldb::ModuleSP &module_sp,
- const lldb_private::FileSpecList *module_search_paths_ptr,
- lldb::ModuleSP *old_module_sp_ptr,
- bool *did_create_ptr) override;
-
- size_t
- GetSoftwareBreakpointTrapOpcode (lldb_private::Target &target,
- lldb_private::BreakpointSite *bp_site) override;
-
- bool
- GetProcessInfo (lldb::pid_t pid,
- lldb_private::ProcessInstanceInfo &proc_info) override;
-
- lldb::BreakpointSP
- SetThreadCreationBreakpoint (lldb_private::Target &target) override;
-
- uint32_t
- FindProcesses (const lldb_private::ProcessInstanceInfoMatch &match_info,
- lldb_private::ProcessInstanceInfoList &process_infos) override;
-
- bool
- ModuleIsExcludedForUnconstrainedSearches(lldb_private::Target &target,
- const lldb::ModuleSP &module_sp) override;
-
- bool
- ARMGetSupportedArchitectureAtIndex (uint32_t idx, lldb_private::ArchSpec &arch);
-
- bool
- x86GetSupportedArchitectureAtIndex (uint32_t idx, lldb_private::ArchSpec &arch);
-
- int32_t
- GetResumeCountForLaunchInfo (lldb_private::ProcessLaunchInfo &launch_info) override;
-
- void
- CalculateTrapHandlerSymbolNames () override;
-
- bool
- GetOSVersion (uint32_t &major,
- uint32_t &minor,
- uint32_t &update,
- lldb_private::Process *process = nullptr) override;
-
- bool
- SupportsModules () override { return true; }
-
- lldb_private::ConstString
- GetFullNameForDylib (lldb_private::ConstString basename) override;
-
- lldb_private::FileSpec
- LocateExecutable (const char *basename) override;
-
- lldb_private::Error
- LaunchProcess(lldb_private::ProcessLaunchInfo &launch_info) override;
+ PlatformDarwin(bool is_host);
+
+ ~PlatformDarwin() override;
+
+ //------------------------------------------------------------
+ // lldb_private::Platform functions
+ //------------------------------------------------------------
+ lldb_private::Error ResolveExecutable(
+ const lldb_private::ModuleSpec &module_spec, lldb::ModuleSP &module_sp,
+ const lldb_private::FileSpecList *module_search_paths_ptr) override;
+
+ lldb_private::Error
+ ResolveSymbolFile(lldb_private::Target &target,
+ const lldb_private::ModuleSpec &sym_spec,
+ lldb_private::FileSpec &sym_file) override;
+
+ lldb_private::FileSpecList LocateExecutableScriptingResources(
+ lldb_private::Target *target, lldb_private::Module &module,
+ lldb_private::Stream *feedback_stream) override;
+
+ lldb_private::Error
+ GetSharedModule(const lldb_private::ModuleSpec &module_spec,
+ lldb_private::Process *process, lldb::ModuleSP &module_sp,
+ const lldb_private::FileSpecList *module_search_paths_ptr,
+ lldb::ModuleSP *old_module_sp_ptr,
+ bool *did_create_ptr) override;
+
+ size_t GetSoftwareBreakpointTrapOpcode(
+ lldb_private::Target &target,
+ lldb_private::BreakpointSite *bp_site) override;
+
+ bool GetProcessInfo(lldb::pid_t pid,
+ lldb_private::ProcessInstanceInfo &proc_info) override;
+
+ lldb::BreakpointSP
+ SetThreadCreationBreakpoint(lldb_private::Target &target) override;
+
+ uint32_t
+ FindProcesses(const lldb_private::ProcessInstanceInfoMatch &match_info,
+ lldb_private::ProcessInstanceInfoList &process_infos) override;
+
+ bool ModuleIsExcludedForUnconstrainedSearches(
+ lldb_private::Target &target, const lldb::ModuleSP &module_sp) override;
+
+ bool ARMGetSupportedArchitectureAtIndex(uint32_t idx,
+ lldb_private::ArchSpec &arch);
+
+ bool x86GetSupportedArchitectureAtIndex(uint32_t idx,
+ lldb_private::ArchSpec &arch);
+
+ int32_t GetResumeCountForLaunchInfo(
+ lldb_private::ProcessLaunchInfo &launch_info) override;
+
+ void CalculateTrapHandlerSymbolNames() override;
+
+ bool GetOSVersion(uint32_t &major, uint32_t &minor, uint32_t &update,
+ lldb_private::Process *process = nullptr) override;
+
+ bool SupportsModules() override { return true; }
+
+ lldb_private::ConstString
+ GetFullNameForDylib(lldb_private::ConstString basename) override;
+
+ lldb_private::FileSpec LocateExecutable(const char *basename) override;
+
+ lldb_private::Error
+ LaunchProcess(lldb_private::ProcessLaunchInfo &launch_info) override;
protected:
- void
- ReadLibdispatchOffsetsAddress (lldb_private::Process *process);
-
- void
- ReadLibdispatchOffsets (lldb_private::Process *process);
-
- virtual lldb_private::Error
- GetSharedModuleWithLocalCache (const lldb_private::ModuleSpec &module_spec,
- lldb::ModuleSP &module_sp,
- const lldb_private::FileSpecList *module_search_paths_ptr,
- lldb::ModuleSP *old_module_sp_ptr,
- bool *did_create_ptr);
-
- enum class SDKType {
- MacOSX = 0,
- iPhoneSimulator,
- iPhoneOS,
- };
-
- static bool
- SDKSupportsModules (SDKType sdk_type, uint32_t major, uint32_t minor, uint32_t micro);
-
- static bool
- SDKSupportsModules (SDKType desired_type, const lldb_private::FileSpec &sdk_path);
-
- struct SDKEnumeratorInfo {
- lldb_private::FileSpec found_path;
- SDKType sdk_type;
- };
-
- static lldb_private::FileSpec::EnumerateDirectoryResult
- DirectoryEnumerator(void *baton,
- lldb_private::FileSpec::FileType file_type,
- const lldb_private::FileSpec &spec);
-
- static lldb_private::FileSpec
- FindSDKInXcodeForModules (SDKType sdk_type,
- const lldb_private::FileSpec &sdks_spec);
-
- static lldb_private::FileSpec
- GetSDKDirectoryForModules (PlatformDarwin::SDKType sdk_type);
-
- void
- AddClangModuleCompilationOptionsForSDKType (lldb_private::Target *target, std::vector<std::string> &options, SDKType sdk_type);
-
- std::string m_developer_directory;
-
- const char *
- GetDeveloperDirectory();
-
+ void ReadLibdispatchOffsetsAddress(lldb_private::Process *process);
+
+ void ReadLibdispatchOffsets(lldb_private::Process *process);
+
+ virtual lldb_private::Error GetSharedModuleWithLocalCache(
+ const lldb_private::ModuleSpec &module_spec, lldb::ModuleSP &module_sp,
+ const lldb_private::FileSpecList *module_search_paths_ptr,
+ lldb::ModuleSP *old_module_sp_ptr, bool *did_create_ptr);
+
+ enum class SDKType {
+ MacOSX = 0,
+ iPhoneSimulator,
+ iPhoneOS,
+ };
+
+ static bool SDKSupportsModules(SDKType sdk_type, uint32_t major,
+ uint32_t minor, uint32_t micro);
+
+ static bool SDKSupportsModules(SDKType desired_type,
+ const lldb_private::FileSpec &sdk_path);
+
+ struct SDKEnumeratorInfo {
+ lldb_private::FileSpec found_path;
+ SDKType sdk_type;
+ };
+
+ static lldb_private::FileSpec::EnumerateDirectoryResult
+ DirectoryEnumerator(void *baton, lldb_private::FileSpec::FileType file_type,
+ const lldb_private::FileSpec &spec);
+
+ static lldb_private::FileSpec
+ FindSDKInXcodeForModules(SDKType sdk_type,
+ const lldb_private::FileSpec &sdks_spec);
+
+ static lldb_private::FileSpec
+ GetSDKDirectoryForModules(PlatformDarwin::SDKType sdk_type);
+
+ void
+ AddClangModuleCompilationOptionsForSDKType(lldb_private::Target *target,
+ std::vector<std::string> &options,
+ SDKType sdk_type);
+
+ std::string m_developer_directory;
+
+ const char *GetDeveloperDirectory();
+
private:
- DISALLOW_COPY_AND_ASSIGN (PlatformDarwin);
+ DISALLOW_COPY_AND_ASSIGN(PlatformDarwin);
};
#endif // liblldb_PlatformDarwin_h_
OpenPOWER on IntegriCloud