Fix 'debug_file' in PESourceLineWriter.

- Add a #define to testing.gyp to avoid warnings about TR1 deprecation.
- PESourceLineWriter now reads debug_file from CodeView record instead
  of using code_file value.
- Updated PE-only MD reading unit test.

Change-Id: Ib4e6201df3e3fd651e160f310584b5a67b16c842
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1668347
Reviewed-by: Ivan Penkov <ivanpe@chromium.org>
This commit is contained in:
Nelson Billing 2019-06-19 16:13:24 -07:00
parent ee65a3c005
commit c38725b70e
3 changed files with 29 additions and 15 deletions

View file

@ -53,9 +53,9 @@
# Visual C++ implements variadic templates strangely, and
# VC++2012 broke Google Test by lowering this value. See
# http://stackoverflow.com/questions/12558327/google-test-in-visual-studio-2012
'defines': ['_VARIADIC_MAX=10'],
'defines': ['_VARIADIC_MAX=10', '_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING'],
},
'defines': ['_VARIADIC_MAX=10'],
'defines': ['_VARIADIC_MAX=10', '_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING'],
},
{
'target_name': 'gmock',
@ -81,9 +81,9 @@
'<(DEPTH)/testing/googlemock',
'<(DEPTH)/testing',
],
'defines': ['_VARIADIC_MAX=10'],
'defines': ['_VARIADIC_MAX=10', '_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING'],
},
'defines': ['_VARIADIC_MAX=10'],
'defines': ['_VARIADIC_MAX=10', '_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING'],
},
],