mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2025-12-27 17:55:29 +01:00
Add -s flag to microdump_stackwalk for dumping stack contents.
Note that the current MicrodumpProcessor::Process implementation has a bug due to the fact that it creates a local Microdump instance, and then holds onto a pointer to the object returned by microdump.GetMemory() which is destroyed when microdump goes out of scope. This CL fixes the crash by making Microdump outlive MicrodumpProcessor, which is the same pattern that Minidump/MinidumpProcessor uses. Bug: google-breakpad:748 Change-Id: I554b46d309649cf404523722bd9ee39e17a10139 Reviewed-on: https://chromium-review.googlesource.com/720809 Reviewed-by: Primiano Tucci <primiano@chromium.org> Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
parent
623c4a0f42
commit
3d6076efc2
6 changed files with 32 additions and 30 deletions
|
|
@ -40,9 +40,10 @@
|
|||
|
||||
namespace google_breakpad {
|
||||
|
||||
class Microdump;
|
||||
class ProcessState;
|
||||
class StackFrameSymbolizer;
|
||||
|
||||
|
||||
class MicrodumpProcessor {
|
||||
public:
|
||||
// Initializes the MicrodumpProcessor with a stack frame symbolizer.
|
||||
|
|
@ -52,7 +53,7 @@ class MicrodumpProcessor {
|
|||
virtual ~MicrodumpProcessor();
|
||||
|
||||
// Processes the microdump contents and fills process_state with the result.
|
||||
google_breakpad::ProcessResult Process(const string& microdump_contents,
|
||||
google_breakpad::ProcessResult Process(Microdump* microdump,
|
||||
ProcessState* process_state);
|
||||
private:
|
||||
StackFrameSymbolizer* frame_symbolizer_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue