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

Issue 1430773003: win: Handle binary with embedded CodeView debug record (Closed)

Created:
5 years, 1 month ago by scottmg
Modified:
5 years, 1 month ago
Reviewers:
Mark Mentovai
CC:
crashpad-dev_chromium.org
Base URL:
https://chromium.googlesource.com/crashpad/crashpad@master
Target Ref:
refs/heads/master
Project:
crashpad
Visibility:
Public.

Description

win: Handle binary with embedded CodeView debug record I considered writing the CodeView records to the minidump, but I didn't find a ton of docs and debugging is only lightly supported (e.g. http://www.debuginfo.com/articles/gendebuginfo.html#debuggersandformats and it doesn't attempt to load at all on more recent Visual Studios). As we won't be generating symbols in this format, and we don't expect to have symbols for any weird modules that get injected into us in the wild, it seems like we don't lose anything by just ignoring them. R=mark@chromium.org BUG=crashpad:47 Committed: https://chromium.googlesource.com/crashpad/crashpad/+/4860f64923df01fddc96803da3ffc14f47668d2a

Patch Set 1 #

Patch Set 2 : handle and test #

Patch Set 3 : . #

Total comments: 21

Patch Set 4 : fixes #

Patch Set 5 : . #

Total comments: 4

Patch Set 6 : fixes2 #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -32 lines) Patch
M handler/handler.gyp View 1 2 3 4 1 chunk +23 lines, -0 lines 0 comments Download
A handler/win/crashy_test_z7_loader.cc View 1 2 3 4 5 1 chunk +73 lines, -0 lines 0 comments Download
A handler/win/z7_test.cpp View 1 2 3 4 5 1 chunk +32 lines, -0 lines 0 comments Download
A handler/win/z7_test.dll View 1 2 3 4 5 Binary file 0 comments Download
M snapshot/win/end_to_end_test.py View 1 4 chunks +22 lines, -2 lines 0 comments Download
M snapshot/win/module_snapshot_win.cc View 1 2 3 4 5 6 1 chunk +8 lines, -0 lines 0 comments Download
M snapshot/win/pe_image_reader.cc View 1 2 3 4 5 6 1 chunk +33 lines, -27 lines 0 comments Download
M util/win/process_info.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
scottmg
5 years, 1 month ago (2015-10-30 19:14:29 UTC) #3
Mark Mentovai
https://codereview.chromium.org/1430773003/diff/40001/handler/win/crashy_test_z7_loader.cc File handler/win/crashy_test_z7_loader.cc (right): https://codereview.chromium.org/1430773003/diff/40001/handler/win/crashy_test_z7_loader.cc#newcode21 handler/win/crashy_test_z7_loader.cc:21: #if !ARCH_CPU_32_BITS Should be !defined(ARCH_CPU_32_BITS). Found the same thing ...
5 years, 1 month ago (2015-10-30 19:42:45 UTC) #4
scottmg
Thanks https://codereview.chromium.org/1430773003/diff/40001/handler/win/crashy_test_z7_loader.cc File handler/win/crashy_test_z7_loader.cc (right): https://codereview.chromium.org/1430773003/diff/40001/handler/win/crashy_test_z7_loader.cc#newcode21 handler/win/crashy_test_z7_loader.cc:21: #if !ARCH_CPU_32_BITS On 2015/10/30 19:42:44, Mark Mentovai wrote: ...
5 years, 1 month ago (2015-10-30 23:52:08 UTC) #5
Mark Mentovai
LGTM! https://codereview.chromium.org/1430773003/diff/40001/handler/win/crashy_test_z7_loader.cc File handler/win/crashy_test_z7_loader.cc (right): https://codereview.chromium.org/1430773003/diff/40001/handler/win/crashy_test_z7_loader.cc#newcode47 handler/win/crashy_test_z7_loader.cc:47: HMODULE z7_test = LoadLibrary(L"../../handler/win/z7_test.dll"); scottmg wrote: > On ...
5 years, 1 month ago (2015-10-31 01:29:34 UTC) #6
scottmg
https://codereview.chromium.org/1430773003/diff/80001/handler/win/crashy_test_z7_loader.cc File handler/win/crashy_test_z7_loader.cc (right): https://codereview.chromium.org/1430773003/diff/80001/handler/win/crashy_test_z7_loader.cc#newcode24 handler/win/crashy_test_z7_loader.cc:24: #if !defined(ARCH_CPU_X86) On 2015/10/31 01:29:33, Mark Mentovai wrote: > ...
5 years, 1 month ago (2015-10-31 18:39:47 UTC) #7
scottmg
5 years, 1 month ago (2015-10-31 18:45:45 UTC) #8
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
4860f64923df01fddc96803da3ffc14f47668d2a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698