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

Side by Side Diff: src/processor/cfi_frame_info.cc

Issue 1292503005: Don't use strtok_s for mingw builds (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/processor/basic_source_line_resolver.cc ('k') | src/processor/tokenize.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) 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
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> &registers, 51 bool CFIFrameInfo::FindCallerRegs(const RegisterValueMap<V> &registers,
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
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
OLDNEW
« no previous file with comments | « src/processor/basic_source_line_resolver.cc ('k') | src/processor/tokenize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698