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

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

Issue 1266493002: Remove unnecessary dependencies. (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 | « no previous file | no next file » | 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #define PRIx32 "lx" 48 #define PRIx32 "lx"
49 #define snprintf _snprintf 49 #define snprintf _snprintf
50 #else // _WIN32 50 #else // _WIN32
51 #include <unistd.h> 51 #include <unistd.h>
52 #endif // _WIN32 52 #endif // _WIN32
53 53
54 #include <fstream> 54 #include <fstream>
55 #include <iostream> 55 #include <iostream>
56 #include <limits> 56 #include <limits>
57 #include <map> 57 #include <map>
58 #include <sstream>
59 #include <vector> 58 #include <vector>
60 59
61 #include "processor/range_map-inl.h" 60 #include "processor/range_map-inl.h"
62 61
63 #include "common/scoped_ptr.h" 62 #include "common/scoped_ptr.h"
64 #include "google_breakpad/processor/dump_context.h" 63 #include "google_breakpad/processor/dump_context.h"
65 #include "processor/basic_code_module.h" 64 #include "processor/basic_code_module.h"
66 #include "processor/basic_code_modules.h" 65 #include "processor/basic_code_modules.h"
67 #include "processor/logging.h" 66 #include "processor/logging.h"
68 67
69 namespace google_breakpad { 68 namespace google_breakpad {
70 69
71 70
72 using std::istream; 71 using std::istream;
73 using std::ifstream; 72 using std::ifstream;
74 using std::numeric_limits; 73 using std::numeric_limits;
75 using std::stringstream;
76 using std::vector; 74 using std::vector;
77 75
78 // Returns true iff |context_size| matches exactly one of the sizes of the 76 // Returns true iff |context_size| matches exactly one of the sizes of the
79 // various MDRawContext* types. 77 // various MDRawContext* types.
80 // TODO(blundell): This function can be removed once 78 // TODO(blundell): This function can be removed once
81 // http://code.google.com/p/google-breakpad/issues/detail?id=550 is fixed. 79 // http://code.google.com/p/google-breakpad/issues/detail?id=550 is fixed.
82 static bool IsContextSizeUnique(uint32_t context_size) { 80 static bool IsContextSizeUnique(uint32_t context_size) {
83 int num_matching_contexts = 0; 81 int num_matching_contexts = 0;
84 if (context_size == sizeof(MDRawContextX86)) 82 if (context_size == sizeof(MDRawContextX86))
85 num_matching_contexts++; 83 num_matching_contexts++;
(...skipping 4679 matching lines...) Expand 10 before | Expand all | Expand 10 after
4765 return NULL; 4763 return NULL;
4766 } 4764 }
4767 4765
4768 *stream = new_stream.release(); 4766 *stream = new_stream.release();
4769 info->stream = *stream; 4767 info->stream = *stream;
4770 return *stream; 4768 return *stream;
4771 } 4769 }
4772 4770
4773 4771
4774 } // namespace google_breakpad 4772 } // namespace google_breakpad
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698