aboutsummaryrefslogtreecommitdiff
path: root/src/client/mac/handler/minidump_generator.h
diff options
context:
space:
mode:
authorladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-05-02 21:05:49 +0000
committerladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-05-02 21:05:49 +0000
commitde2fd15db9a480c807ba337690669538a97756a4 (patch)
treed75206c937a7f1ae2ab1f6e38957d17cb9345d1a /src/client/mac/handler/minidump_generator.h
parentIssue 159: reviewer Waylonis (diff)
downloadbreakpad-de2fd15db9a480c807ba337690669538a97756a4.tar.xz
Issue 159: reviewer Waylonis
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@151 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client/mac/handler/minidump_generator.h')
-rw-r--r--src/client/mac/handler/minidump_generator.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/client/mac/handler/minidump_generator.h b/src/client/mac/handler/minidump_generator.h
index 3061d46b..9fee9e5a 100644
--- a/src/client/mac/handler/minidump_generator.h
+++ b/src/client/mac/handler/minidump_generator.h
@@ -39,6 +39,8 @@
#include "client/minidump_file_writer.h"
#include "google_breakpad/common/minidump_format.h"
+#include "dynamic_images.h"
+
namespace google_breakpad {
using std::string;
@@ -53,6 +55,8 @@ using std::string;
class MinidumpGenerator {
public:
MinidumpGenerator();
+ MinidumpGenerator(mach_port_t crashing_task, mach_port_t handler_thread);
+
~MinidumpGenerator();
// Return <dir>/<unique_name>.dmp
@@ -98,6 +102,8 @@ class MinidumpGenerator {
bool WriteCVRecord(MDRawModule *module, int cpu_type,
const char *module_path);
bool WriteModuleStream(unsigned int index, MDRawModule *module);
+ size_t CalculateStackSize(vm_address_t start_addr);
+ int FindExecutableModule();
// disallow copy ctor and operator=
explicit MinidumpGenerator(const MinidumpGenerator &);
@@ -110,12 +116,17 @@ class MinidumpGenerator {
int exception_type_;
int exception_code_;
mach_port_t exception_thread_;
-
+ mach_port_t crashing_task_;
+ mach_port_t handler_thread_;
+
// System information
static char build_string_[16];
static int os_major_version_;
static int os_minor_version_;
static int os_build_number_;
+
+ // Information about dynamically loaded code
+ DynamicImages *dynamic_images_;
};
} // namespace google_breakpad