OLD | NEW |
1 // Copyright (c) 2007, Google Inc. | 1 // Copyright (c) 2007, 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 static size_t size() { return MDCVInfoPDB20_minsize; } | 69 static size_t size() { return MDCVInfoPDB20_minsize; } |
70 }; | 70 }; |
71 | 71 |
72 template<> | 72 template<> |
73 class minidump_size<MDCVInfoPDB70> { | 73 class minidump_size<MDCVInfoPDB70> { |
74 public: | 74 public: |
75 static size_t size() { return MDCVInfoPDB70_minsize; } | 75 static size_t size() { return MDCVInfoPDB70_minsize; } |
76 }; | 76 }; |
77 | 77 |
78 template<> | 78 template<> |
| 79 class minidump_size<MDCVInfoELF> { |
| 80 public: |
| 81 static size_t size() { return MDCVInfoELF_minsize; } |
| 82 }; |
| 83 |
| 84 template<> |
79 class minidump_size<MDImageDebugMisc> { | 85 class minidump_size<MDImageDebugMisc> { |
80 public: | 86 public: |
81 static size_t size() { return MDImageDebugMisc_minsize; } | 87 static size_t size() { return MDImageDebugMisc_minsize; } |
82 }; | 88 }; |
83 | 89 |
84 template<> | 90 template<> |
85 class minidump_size<MDRawModuleList> { | 91 class minidump_size<MDRawModuleList> { |
86 public: | 92 public: |
87 static size_t size() { return MDRawModuleList_minsize; } | 93 static size_t size() { return MDRawModuleList_minsize; } |
88 }; | 94 }; |
89 | 95 |
90 template<> | 96 template<> |
91 class minidump_size<MDRawMemoryList> { | 97 class minidump_size<MDRawMemoryList> { |
92 public: | 98 public: |
93 static size_t size() { return MDRawMemoryList_minsize; } | 99 static size_t size() { return MDRawMemoryList_minsize; } |
94 }; | 100 }; |
95 | 101 |
96 // Explicit specialization for MDRawModule, for which sizeof may include | 102 // Explicit specialization for MDRawModule, for which sizeof may include |
97 // tail-padding on some architectures but not others. | 103 // tail-padding on some architectures but not others. |
98 | 104 |
99 template<> | 105 template<> |
100 class minidump_size<MDRawModule> { | 106 class minidump_size<MDRawModule> { |
101 public: | 107 public: |
102 static size_t size() { return MD_MODULE_SIZE; } | 108 static size_t size() { return MD_MODULE_SIZE; } |
103 }; | 109 }; |
104 | 110 |
105 } // namespace google_breakpad | 111 } // namespace google_breakpad |
106 | 112 |
107 #endif // GOOGLE_BREAKPAD_COMMON_MINIDUMP_SIZE_H__ | 113 #endif // GOOGLE_BREAKPAD_COMMON_MINIDUMP_SIZE_H__ |
OLD | NEW |