breakpad/src/client/linux/minidump_writer
mkrebs@chromium.org d80f175c1a Add optional file size limit for minidumps
When there are upwards of 200 threads in a crashing process, each having an
8KB stack, this can result in a huge, 1.8MB minidump file.  So I added a
parameter that, if set, can compel the minidump writer to dump less stack.
More specifically, if the writer expects to go over the limit (due to the
number of threads), then it will dump less of a thread's stack after the
first 20 threads.

There are two ways to specify the limit, depending on how you write minidumps:
1) If you call WriteMinidump() directly, there's now a version of the
   function that takes the minidump size limit as an argument.
2) If you use the ExceptionHandler class, the MinidumpDescriptor object you
   pass to it now has a set_size_limit() method you would call before
   passing it to the constructor.

BUG=chromium-os:31447, chromium:154546
TEST=Wrote a size-limit unittest; Ran unittests
Review URL: https://breakpad.appspot.com/487002

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1082 4c0a9323-5329-0410-9bdc-e9ce6186880e
2012-11-15 00:01:13 +00:00
..
directory_reader.h SORRY. It seems I've screwed up my commit for http://breakpad.appspot.com/411002/, since revision 1001 only contains the new src/client/linux/linux_libc_support.cc and none of the other required files. 2012-08-03 15:01:52 +00:00
directory_reader_unittest.cc This change allows compiling the google-breakpad code using a global ::string class instead of std::string. For more details take a look at common/using_std_string.h 2012-06-28 22:46:01 +00:00
line_reader.h SORRY. It seems I've screwed up my commit for http://breakpad.appspot.com/411002/, since revision 1001 only contains the new src/client/linux/linux_libc_support.cc and none of the other required files. 2012-08-03 15:01:52 +00:00
line_reader_unittest.cc Fix compilation warnings related to unchecked return values 2012-04-25 11:22:09 +00:00
linux_core_dumper.cc Don't bail if a thread's stack pointer is invalid 2012-10-08 20:33:06 +00:00
linux_core_dumper.h Implement core dump to minidump conversion. 2012-01-19 07:14:51 +00:00
linux_core_dumper_unittest.cc Don't bail if a thread's stack pointer is invalid 2012-10-08 20:33:06 +00:00
linux_dumper.cc Minidumps never contain MD_LINUX_DSO_DEBUG info when breakpad is in a shared library 2012-09-19 12:55:16 +00:00
linux_dumper.h Don't bail if a thread's stack pointer is invalid 2012-10-08 20:33:06 +00:00
linux_dumper_unittest_helper.cc Fixing various compiler warnings and applying minor tweaks to allow running of 2012-07-02 22:55:57 +00:00
linux_ptrace_dumper.cc Don't bail if a thread's stack pointer is invalid 2012-10-08 20:33:06 +00:00
linux_ptrace_dumper.h Implement core dump to minidump conversion. 2012-01-19 07:14:51 +00:00
linux_ptrace_dumper_unittest.cc Don't bail if a thread's stack pointer is invalid 2012-10-08 20:33:06 +00:00
minidump_writer.cc Add optional file size limit for minidumps 2012-11-15 00:01:13 +00:00
minidump_writer.h Add optional file size limit for minidumps 2012-11-15 00:01:13 +00:00
minidump_writer_unittest.cc Add optional file size limit for minidumps 2012-11-15 00:01:13 +00:00
minidump_writer_unittest_utils.cc Fixing various compiler warnings and applying minor tweaks to allow running of 2012-07-02 22:55:57 +00:00
minidump_writer_unittest_utils.h Fixing various compiler warnings and applying minor tweaks to allow running of 2012-07-02 22:55:57 +00:00