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

Side by Side Diff: snapshot/win/end_to_end_test.py

Issue 1533183002: win: Capture some memory pointed at by context (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: mac Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « snapshot/win/capture_context_memory.cc ('k') | snapshot/win/exception_snapshot_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 2
3 # Copyright 2015 The Crashpad Authors. All rights reserved. 3 # Copyright 2015 The Crashpad Authors. All rights reserved.
4 # 4 #
5 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License. 6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at 7 # You may obtain a copy of the License at
8 # 8 #
9 # http://www.apache.org/licenses/LICENSE-2.0 9 # http://www.apache.org/licenses/LICENSE-2.0
10 # 10 #
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 out.Check(r'ntdll\.dll', 'ntdll present', re.IGNORECASE) 240 out.Check(r'ntdll\.dll', 'ntdll present', re.IGNORECASE)
241 241
242 # Check that there is no stack trace in the self-destroyed process. Confirm 242 # Check that there is no stack trace in the self-destroyed process. Confirm
243 # that the top is where we expect it (that's based only on IP), but subsequent 243 # that the top is where we expect it (that's based only on IP), but subsequent
244 # stack entries will not be available. This confirms that we have a mostly 244 # stack entries will not be available. This confirms that we have a mostly
245 # valid dump, but that the stack was omitted. 245 # valid dump, but that the stack was omitted.
246 out.Check(r'self_destroying_program!crashpad::`anonymous namespace\'::' 246 out.Check(r'self_destroying_program!crashpad::`anonymous namespace\'::'
247 r'FreeOwnStackAndBreak.*\nquit:', 247 r'FreeOwnStackAndBreak.*\nquit:',
248 'at correct location, no additional stack entries') 248 'at correct location, no additional stack entries')
249 249
250 out = CdbRun(cdb_path, dump_path, '.ecxr; db /c14 edi')
251 out.Check(r'63 62 61 60 5f 5e 5d 5c-5b 5a 59 58 57 56 55 54 53 52 51 50',
252 'data pointed to by registers captured')
253
250 if z7_dump_path: 254 if z7_dump_path:
251 out = CdbRun(cdb_path, z7_dump_path, '.ecxr;lm') 255 out = CdbRun(cdb_path, z7_dump_path, '.ecxr;lm')
252 out.Check('This dump file has an exception of interest stored in it', 256 out.Check('This dump file has an exception of interest stored in it',
253 'captured exception in z7 module') 257 'captured exception in z7 module')
254 # Older versions of cdb display relative to exports for /Z7 modules, newer 258 # Older versions of cdb display relative to exports for /Z7 modules, newer
255 # ones just display the offset. 259 # ones just display the offset.
256 out.Check(r'z7_test(!CrashMe\+0xe|\+0x100e):', 260 out.Check(r'z7_test(!CrashMe\+0xe|\+0x100e):',
257 'exception in z7 at correct location') 261 'exception in z7 at correct location')
258 out.Check(r'z7_test C \(codeview symbols\) z7_test.dll', 262 out.Check(r'z7_test C \(codeview symbols\) z7_test.dll',
259 'expected non-pdb symbol format') 263 'expected non-pdb symbol format')
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 z7_dump_path, 310 z7_dump_path,
307 pipe_name) 311 pipe_name)
308 312
309 return 0 313 return 0
310 finally: 314 finally:
311 CleanUpTempDirs() 315 CleanUpTempDirs()
312 316
313 317
314 if __name__ == '__main__': 318 if __name__ == '__main__':
315 sys.exit(main(sys.argv[1:])) 319 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « snapshot/win/capture_context_memory.cc ('k') | snapshot/win/exception_snapshot_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698