Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(447)

Unified Diff: util/mac/process_reader.h

Issue 577293002: Use task_t, thread_t, and exception_handler_t uniformly (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: util/mac/process_reader.h
diff --git a/util/mac/process_reader.h b/util/mac/process_reader.h
index 0e5a30ef55fcbb6e047bfd64fe329d050eefdc80..fd5f209e23eca024963e978ea1ff9af2a9ac5e25 100644
--- a/util/mac/process_reader.h
+++ b/util/mac/process_reader.h
@@ -64,7 +64,7 @@ class ProcessReader {
mach_vm_address_t stack_region_address;
mach_vm_size_t stack_region_size;
mach_vm_address_t thread_specific_data_address;
- mach_port_t port;
+ task_t port;
int suspend_count;
int priority;
};
@@ -101,7 +101,7 @@ class ProcessReader {
//! \return `true` on success, indicating that this object will respond
//! validly to further method calls. `false` on failure. On failure, no
//! further method calls should be made.
- bool Initialize(mach_port_t task);
+ bool Initialize(task_t task);
//! \return `true` if the target task is a 64-bit process.
bool Is64Bit() const { return is_64_bit_; }
@@ -205,7 +205,7 @@ class ProcessReader {
std::vector<Thread> threads_; // owns send rights
std::vector<Module> modules_;
scoped_ptr<TaskMemory> task_memory_;
- mach_port_t task_; // weak
+ task_t task_; // weak
InitializationStateDcheck initialized_;
// This shadows a bit in kern_proc_info_, but it’s accessed so frequently that

Powered by Google App Engine
This is Rietveld 408576698