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

Side by Side Diff: base/debug/stack_trace.h

Issue 267463003: Create copy of context record before passing it to StackWalk64 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | base/debug/stack_trace_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_DEBUG_STACK_TRACE_H_ 5 #ifndef BASE_DEBUG_STACK_TRACE_H_
6 #define BASE_DEBUG_STACK_TRACE_H_ 6 #define BASE_DEBUG_STACK_TRACE_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Creates a stacktrace from an existing array of instruction 47 // Creates a stacktrace from an existing array of instruction
48 // pointers (such as returned by Addresses()). |count| will be 48 // pointers (such as returned by Addresses()). |count| will be
49 // trimmed to |kMaxTraces|. 49 // trimmed to |kMaxTraces|.
50 StackTrace(const void* const* trace, size_t count); 50 StackTrace(const void* const* trace, size_t count);
51 51
52 #if defined(OS_WIN) 52 #if defined(OS_WIN)
53 // Creates a stacktrace for an exception. 53 // Creates a stacktrace for an exception.
54 // Note: this function will throw an import not found (StackWalk64) exception 54 // Note: this function will throw an import not found (StackWalk64) exception
55 // on system without dbghelp 5.1. 55 // on system without dbghelp 5.1.
56 StackTrace(_EXCEPTION_POINTERS* exception_pointers); 56 StackTrace(const _EXCEPTION_POINTERS* exception_pointers);
57 #endif 57 #endif
58 58
59 // Copying and assignment are allowed with the default functions. 59 // Copying and assignment are allowed with the default functions.
60 60
61 ~StackTrace(); 61 ~StackTrace();
62 62
63 // Gets an array of instruction pointer values. |*count| will be set to the 63 // Gets an array of instruction pointer values. |*count| will be set to the
64 // number of elements in the returned array. 64 // number of elements in the returned array.
65 const void* const* Addresses(size_t* count) const; 65 const void* const* Addresses(size_t* count) const;
66 66
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 int base, 103 int base,
104 size_t padding); 104 size_t padding);
105 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) 105 #endif // defined(OS_POSIX) && !defined(OS_ANDROID)
106 106
107 } // namespace internal 107 } // namespace internal
108 108
109 } // namespace debug 109 } // namespace debug
110 } // namespace base 110 } // namespace base
111 111
112 #endif // BASE_DEBUG_STACK_TRACE_H_ 112 #endif // BASE_DEBUG_STACK_TRACE_H_
OLDNEW
« no previous file with comments | « no previous file | base/debug/stack_trace_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698