OLD | NEW |
1 // Copyright (c) 2012, Google Inc. | 1 // Copyright (c) 2012, 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 bool LinuxCoreDumper::ThreadsSuspend() { | 118 bool LinuxCoreDumper::ThreadsSuspend() { |
119 return true; | 119 return true; |
120 } | 120 } |
121 | 121 |
122 bool LinuxCoreDumper::ThreadsResume() { | 122 bool LinuxCoreDumper::ThreadsResume() { |
123 return true; | 123 return true; |
124 } | 124 } |
125 | 125 |
126 bool LinuxCoreDumper::EnumerateThreads() { | 126 bool LinuxCoreDumper::EnumerateThreads() { |
127 if (!mapped_core_file_.Map(core_path_)) { | 127 if (!mapped_core_file_.Map(core_path_, 0)) { |
128 fprintf(stderr, "Could not map core dump file into memory\n"); | 128 fprintf(stderr, "Could not map core dump file into memory\n"); |
129 return false; | 129 return false; |
130 } | 130 } |
131 | 131 |
132 core_.SetContent(mapped_core_file_.content()); | 132 core_.SetContent(mapped_core_file_.content()); |
133 if (!core_.IsValid()) { | 133 if (!core_.IsValid()) { |
134 fprintf(stderr, "Invalid core dump file\n"); | 134 fprintf(stderr, "Invalid core dump file\n"); |
135 return false; | 135 return false; |
136 } | 136 } |
137 | 137 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 } | 241 } |
242 #endif | 242 #endif |
243 } | 243 } |
244 note = note.GetNextNote(); | 244 note = note.GetNextNote(); |
245 } while (note.IsValid()); | 245 } while (note.IsValid()); |
246 | 246 |
247 return true; | 247 return true; |
248 } | 248 } |
249 | 249 |
250 } // namespace google_breakpad | 250 } // namespace google_breakpad |
OLD | NEW |