mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-31 01:43:03 +08:00
ef8a063055
If the process' threads can't be read, then the cpu context object won't be able to be initialized. Previously, the process snapshot always assumed that the context would be filled out, as there was no error returned, which could result in later checks failing. Return an error from the exception snapshot's initialization so that process snapshot can correctly handle failure to initialize. Bug: fuchsia:55837 Change-Id: Ia3fecef1230a19dfa23401b0339c6a94370c6baf Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2296039 Commit-Queue: Scott Graham <scottmg@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org>