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

Side by Side Diff: snapshot/thread_snapshot.h

Issue 693933002: Add MinidumpThreadListWriter::InitializeFromSnapshot() (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@minidump_init_from_snapshot_context_new
Patch Set: Address review feedback Created 6 years, 1 month 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/test/test_thread_snapshot.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Crashpad Authors. All rights reserved. 1 // Copyright 2014 The Crashpad Authors. All rights reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 18 matching lines...) Expand all
29 virtual ~ThreadSnapshot() {} 29 virtual ~ThreadSnapshot() {}
30 30
31 //! \brief Returns a CPUContext object corresponding to the thread’s CPU 31 //! \brief Returns a CPUContext object corresponding to the thread’s CPU
32 //! context. 32 //! context.
33 //! 33 //!
34 //! The caller does not take ownership of this object, it is scoped to the 34 //! The caller does not take ownership of this object, it is scoped to the
35 //! lifetime of the ThreadSnapshot object that it was obtained from. 35 //! lifetime of the ThreadSnapshot object that it was obtained from.
36 virtual const CPUContext* Context() const = 0; 36 virtual const CPUContext* Context() const = 0;
37 37
38 //! \brief Returns a MemorySnapshot object corresponding to the memory region 38 //! \brief Returns a MemorySnapshot object corresponding to the memory region
39 //! that contains the thread’s stack. 39 //! that contains the thread’s stack, or `nullptr` if no stack region is
40 //! available.
40 //! 41 //!
41 //! The caller does not take ownership of this object, it is scoped to the 42 //! The caller does not take ownership of this object, it is scoped to the
42 //! lifetime of the ThreadSnapshot object that it was obtained from. 43 //! lifetime of the ThreadSnapshot object that it was obtained from.
43 virtual const MemorySnapshot* Stack() const = 0; 44 virtual const MemorySnapshot* Stack() const = 0;
44 45
45 //! \brief Returns the thread’s identifier. 46 //! \brief Returns the thread’s identifier.
46 //! 47 //!
47 //! Thread identifiers are at least unique within a process, and may be unique 48 //! Thread identifiers are at least unique within a process, and may be unique
48 //! system-wide. 49 //! system-wide.
49 virtual uint64_t ThreadID() const = 0; 50 virtual uint64_t ThreadID() const = 0;
50 51
51 //! \brief Returns the thread’s suspend count. 52 //! \brief Returns the thread’s suspend count.
52 //! 53 //!
53 //! A suspend count of `0` denotes a schedulable (not suspended) thread. 54 //! A suspend count of `0` denotes a schedulable (not suspended) thread.
54 virtual int SuspendCount() const = 0; 55 virtual int SuspendCount() const = 0;
55 56
56 //! \brief Returns the thread’s priority. 57 //! \brief Returns the thread’s priority.
57 //! 58 //!
58 //! Threads with higher priorities will have higher priority values. 59 //! Threads with higher priorities will have higher priority values.
59 virtual int Priority() const = 0; 60 virtual int Priority() const = 0;
60 61
61 //! \brief Returns the base address of a region used to store thread-specific 62 //! \brief Returns the base address of a region used to store thread-specific
62 //! data. 63 //! data.
63 virtual uint64_t ThreadSpecificDataAddress() const = 0; 64 virtual uint64_t ThreadSpecificDataAddress() const = 0;
64 }; 65 };
65 66
66 } // namespace crashpad 67 } // namespace crashpad
67 68
68 #endif // CRASHPAD_SNAPSHOT_THREAD_SNAPSHOT_H_ 69 #endif // CRASHPAD_SNAPSHOT_THREAD_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « snapshot/test/test_thread_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698