summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.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/SystemRuntime/MacOSX/AppleGetQueuesHandler.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/SystemRuntime/MacOSX/AppleGetQueuesHandler.h')
-rw-r--r--lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.h126
1 files changed, 63 insertions, 63 deletions
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.h b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.h
index b7ca26dafc3..b3965667bb3 100644
--- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.h
+++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.h
@@ -18,9 +18,9 @@
// Other libraries and framework includes
// Project includes
-#include "lldb/lldb-public.h"
#include "lldb/Core/Error.h"
#include "lldb/Symbol/CompilerType.h"
+#include "lldb/lldb-public.h"
// This class will insert a UtilityFunction into the inferior process for
// calling libBacktraceRecording's introspection_get_dispatch_queues()
@@ -41,76 +41,76 @@
// The AppleGetQueuesHandler object should persist so that the UtilityFunction
// can be reused multiple times.
-namespace lldb_private
-{
+namespace lldb_private {
class AppleGetQueuesHandler {
public:
-
- AppleGetQueuesHandler (lldb_private::Process *process);
-
- ~AppleGetQueuesHandler();
-
- struct GetQueuesReturnInfo
- {
- lldb::addr_t queues_buffer_ptr; /* the address of the queues buffer from libBacktraceRecording */
- lldb::addr_t queues_buffer_size; /* the size of the queues buffer from libBacktraceRecording */
- uint64_t count; /* the number of queues included in the queues buffer */
-
- GetQueuesReturnInfo() :
- queues_buffer_ptr(LLDB_INVALID_ADDRESS),
- queues_buffer_size(0),
- count(0)
- {}
- };
-
- //----------------------------------------------------------
- /// Get the list of queues that exist (with any active or pending items) via
- /// a call to introspection_get_dispatch_queues(). If there's a page of
- /// memory that needs to be freed, pass in the address and size and it will
- /// be freed before getting the list of queues.
- ///
- /// @param [in] thread
- /// The thread to run this plan on.
- ///
- /// @param [in] page_to_free
- /// An address of an inferior process vm page that needs to be deallocated,
- /// LLDB_INVALID_ADDRESS if this is not needed.
- ///
- /// @param [in] page_to_free_size
- /// The size of the vm page that needs to be deallocated if an address was
- /// passed in to page_to_free.
- ///
- /// @param [out] error
- /// This object will be updated with the error status / error string from any failures encountered.
- ///
- /// @returns
- /// The result of the inferior function call execution. If there was a failure of any kind while getting
- /// the information, the queues_buffer_ptr value will be LLDB_INVALID_ADDRESS.
- //----------------------------------------------------------
- GetQueuesReturnInfo
- GetCurrentQueues (Thread &thread, lldb::addr_t page_to_free, uint64_t page_to_free_size, lldb_private::Error &error);
-
-
- void
- Detach ();
+ AppleGetQueuesHandler(lldb_private::Process *process);
+
+ ~AppleGetQueuesHandler();
+
+ struct GetQueuesReturnInfo {
+ lldb::addr_t queues_buffer_ptr; /* the address of the queues buffer from
+ libBacktraceRecording */
+ lldb::addr_t queues_buffer_size; /* the size of the queues buffer from
+ libBacktraceRecording */
+ uint64_t count; /* the number of queues included in the queues buffer */
+
+ GetQueuesReturnInfo()
+ : queues_buffer_ptr(LLDB_INVALID_ADDRESS), queues_buffer_size(0),
+ count(0) {}
+ };
+
+ //----------------------------------------------------------
+ /// Get the list of queues that exist (with any active or pending items) via
+ /// a call to introspection_get_dispatch_queues(). If there's a page of
+ /// memory that needs to be freed, pass in the address and size and it will
+ /// be freed before getting the list of queues.
+ ///
+ /// @param [in] thread
+ /// The thread to run this plan on.
+ ///
+ /// @param [in] page_to_free
+ /// An address of an inferior process vm page that needs to be
+ /// deallocated,
+ /// LLDB_INVALID_ADDRESS if this is not needed.
+ ///
+ /// @param [in] page_to_free_size
+ /// The size of the vm page that needs to be deallocated if an address was
+ /// passed in to page_to_free.
+ ///
+ /// @param [out] error
+ /// This object will be updated with the error status / error string from
+ /// any failures encountered.
+ ///
+ /// @returns
+ /// The result of the inferior function call execution. If there was a
+ /// failure of any kind while getting
+ /// the information, the queues_buffer_ptr value will be
+ /// LLDB_INVALID_ADDRESS.
+ //----------------------------------------------------------
+ GetQueuesReturnInfo GetCurrentQueues(Thread &thread,
+ lldb::addr_t page_to_free,
+ uint64_t page_to_free_size,
+ lldb_private::Error &error);
+
+ void Detach();
private:
+ lldb::addr_t SetupGetQueuesFunction(Thread &thread,
+ ValueList &get_queues_arglist);
- lldb::addr_t
- SetupGetQueuesFunction (Thread &thread, ValueList &get_queues_arglist);
-
- static const char *g_get_current_queues_function_name;
- static const char *g_get_current_queues_function_code;
+ static const char *g_get_current_queues_function_name;
+ static const char *g_get_current_queues_function_code;
- lldb_private::Process *m_process;
- std::unique_ptr<UtilityFunction> m_get_queues_impl_code_up;
- std::mutex m_get_queues_function_mutex;
+ lldb_private::Process *m_process;
+ std::unique_ptr<UtilityFunction> m_get_queues_impl_code_up;
+ std::mutex m_get_queues_function_mutex;
- lldb::addr_t m_get_queues_return_buffer_addr;
- std::mutex m_get_queues_retbuffer_mutex;
+ lldb::addr_t m_get_queues_return_buffer_addr;
+ std::mutex m_get_queues_retbuffer_mutex;
};
-} // using namespace lldb_private
+} // using namespace lldb_private
-#endif // lldb_AppleGetQueuesHandler_h_
+#endif // lldb_AppleGetQueuesHandler_h_
OpenPOWER on IntegriCloud