| OLD | NEW |
| 1 // Copyright (c) 2006, Google Inc. | 1 // Copyright (c) 2006, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 ~CallStack(); | 61 ~CallStack(); |
| 62 | 62 |
| 63 // Resets the CallStack to its initial empty state | 63 // Resets the CallStack to its initial empty state |
| 64 void Clear(); | 64 void Clear(); |
| 65 | 65 |
| 66 const vector<StackFrame*>* frames() const { return &frames_; } | 66 const vector<StackFrame*>* frames() const { return &frames_; } |
| 67 | 67 |
| 68 // Set the TID associated with this call stack. | 68 // Set the TID associated with this call stack. |
| 69 void set_tid(uint32_t tid) { tid_ = tid; } | 69 void set_tid(uint32_t tid) { tid_ = tid; } |
| 70 | 70 |
| 71 uint32_t tid() { return tid_; } | 71 uint32_t tid() const { return tid_; } |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 // Stackwalker is responsible for building the frames_ vector. | 74 // Stackwalker is responsible for building the frames_ vector. |
| 75 friend class Stackwalker; | 75 friend class Stackwalker; |
| 76 | 76 |
| 77 // Storage for pushed frames. | 77 // Storage for pushed frames. |
| 78 vector<StackFrame*> frames_; | 78 vector<StackFrame*> frames_; |
| 79 | 79 |
| 80 // The TID associated with this call stack. Default to 0 if it's not | 80 // The TID associated with this call stack. Default to 0 if it's not |
| 81 // available. | 81 // available. |
| 82 uint32_t tid_; | 82 uint32_t tid_; |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 } // namespace google_breakpad | 85 } // namespace google_breakpad |
| 86 | 86 |
| 87 #endif // GOOGLE_BREAKPAD_PROCSSOR_CALL_STACK_H__ | 87 #endif // GOOGLE_BREAKPAD_PROCSSOR_CALL_STACK_H__ |
| OLD | NEW |