OLD | NEW |
1 // -*- mode: C++ -*- | 1 // -*- mode: C++ -*- |
2 | 2 |
3 // Copyright (c) 2010 Google Inc. All Rights Reserved. | 3 // Copyright (c) 2010 Google Inc. All Rights Reserved. |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 // A DWARF2/3 line info header. This is not the same size as | 133 // A DWARF2/3 line info header. This is not the same size as |
134 // in the actual file, as the one in the file may have a 32 bit or | 134 // in the actual file, as the one in the file may have a 32 bit or |
135 // 64 bit lengths | 135 // 64 bit lengths |
136 | 136 |
137 struct LineInfoHeader header_; | 137 struct LineInfoHeader header_; |
138 | 138 |
139 // buffer is the buffer for our line info, starting at exactly where | 139 // buffer is the buffer for our line info, starting at exactly where |
140 // the line info to read is. after_header is the place right after | 140 // the line info to read is. after_header is the place right after |
141 // the end of the line information header. | 141 // the end of the line information header. |
142 const char* buffer_; | 142 const char* buffer_; |
| 143 #ifndef NDEBUG |
143 uint64 buffer_length_; | 144 uint64 buffer_length_; |
| 145 #endif |
144 const char* after_header_; | 146 const char* after_header_; |
145 }; | 147 }; |
146 | 148 |
147 // This class is the main interface between the line info reader and | 149 // This class is the main interface between the line info reader and |
148 // the client. The virtual functions inside this get called for | 150 // the client. The virtual functions inside this get called for |
149 // interesting events that happen during line info reading. The | 151 // interesting events that happen during line info reading. The |
150 // default implementation does nothing | 152 // default implementation does nothing |
151 | 153 |
152 class LineInfoHandler { | 154 class LineInfoHandler { |
153 public: | 155 public: |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 // The name of the file whose CFI we're reading. | 1043 // The name of the file whose CFI we're reading. |
1042 string filename_; | 1044 string filename_; |
1043 | 1045 |
1044 // The name of the CFI section in that file. | 1046 // The name of the CFI section in that file. |
1045 string section_; | 1047 string section_; |
1046 }; | 1048 }; |
1047 | 1049 |
1048 } // namespace dwarf2reader | 1050 } // namespace dwarf2reader |
1049 | 1051 |
1050 #endif // UTIL_DEBUGINFO_DWARF2READER_H__ | 1052 #endif // UTIL_DEBUGINFO_DWARF2READER_H__ |
OLD | NEW |