mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-06 22:48:30 +01:00
Add the TID to the CallStack.
R=ivanpe@chromium.org Review URL: https://codereview.chromium.org/1849933002 .
This commit is contained in:
parent
c77c51fae6
commit
d9c532217e
4 changed files with 14 additions and 1 deletions
|
|
@ -45,6 +45,7 @@
|
|||
#ifndef GOOGLE_BREAKPAD_PROCESSOR_CALL_STACK_H__
|
||||
#define GOOGLE_BREAKPAD_PROCESSOR_CALL_STACK_H__
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
namespace google_breakpad {
|
||||
|
|
@ -61,15 +62,24 @@ class CallStack {
|
|||
|
||||
// Resets the CallStack to its initial empty state
|
||||
void Clear();
|
||||
|
||||
|
||||
const vector<StackFrame*>* frames() const { return &frames_; }
|
||||
|
||||
// Set the TID associated with this call stack.
|
||||
void set_tid(uint32_t tid) { tid_ = tid; }
|
||||
|
||||
uint32_t tid() { return tid_; }
|
||||
|
||||
private:
|
||||
// Stackwalker is responsible for building the frames_ vector.
|
||||
friend class Stackwalker;
|
||||
|
||||
// Storage for pushed frames.
|
||||
vector<StackFrame*> frames_;
|
||||
|
||||
// The TID associated with this call stack. Default to 0 if it's not
|
||||
// available.
|
||||
uint32_t tid_;
|
||||
};
|
||||
|
||||
} // namespace google_breakpad
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue