OLD | NEW |
1 // Copyright (c) 2010, Google Inc. | 1 // Copyright (c) 2010, 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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 #include <string.h> | 37 #include <string.h> |
38 | 38 |
39 #include <sstream> | 39 #include <sstream> |
40 | 40 |
41 #include "common/scoped_ptr.h" | 41 #include "common/scoped_ptr.h" |
42 #include "processor/postfix_evaluator-inl.h" | 42 #include "processor/postfix_evaluator-inl.h" |
43 | 43 |
44 namespace google_breakpad { | 44 namespace google_breakpad { |
45 | 45 |
46 #ifdef _WIN32 | 46 #ifdef _MSC_VER |
47 #define strtok_r strtok_s | 47 #define strtok_r strtok_s |
48 #endif | 48 #endif |
49 | 49 |
50 template<typename V> | 50 template<typename V> |
51 bool CFIFrameInfo::FindCallerRegs(const RegisterValueMap<V> ®isters, | 51 bool CFIFrameInfo::FindCallerRegs(const RegisterValueMap<V> ®isters, |
52 const MemoryRegion &memory, | 52 const MemoryRegion &memory, |
53 RegisterValueMap<V> *caller_registers) const { | 53 RegisterValueMap<V> *caller_registers) const { |
54 // If there are not rules for both .ra and .cfa in effect at this address, | 54 // If there are not rules for both .ra and .cfa in effect at this address, |
55 // don't use this CFI data for stack walking. | 55 // don't use this CFI data for stack walking. |
56 if (cfa_rule_.empty() || ra_rule_.empty()) | 56 if (cfa_rule_.empty() || ra_rule_.empty()) |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 void CFIFrameInfoParseHandler::RARule(const string &expression) { | 177 void CFIFrameInfoParseHandler::RARule(const string &expression) { |
178 frame_info_->SetRARule(expression); | 178 frame_info_->SetRARule(expression); |
179 } | 179 } |
180 | 180 |
181 void CFIFrameInfoParseHandler::RegisterRule(const string &name, | 181 void CFIFrameInfoParseHandler::RegisterRule(const string &name, |
182 const string &expression) { | 182 const string &expression) { |
183 frame_info_->SetRegisterRule(name, expression); | 183 frame_info_->SetRegisterRule(name, expression); |
184 } | 184 } |
185 | 185 |
186 } // namespace google_breakpad | 186 } // namespace google_breakpad |
OLD | NEW |