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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 enum DwarfForm form, | 199 enum DwarfForm form, |
200 uint64 data) { } | 200 uint64 data) { } |
201 virtual void ProcessAttributeSigned(enum DwarfAttribute attr, | 201 virtual void ProcessAttributeSigned(enum DwarfAttribute attr, |
202 enum DwarfForm form, | 202 enum DwarfForm form, |
203 int64 data) { } | 203 int64 data) { } |
204 virtual void ProcessAttributeReference(enum DwarfAttribute attr, | 204 virtual void ProcessAttributeReference(enum DwarfAttribute attr, |
205 enum DwarfForm form, | 205 enum DwarfForm form, |
206 uint64 data) { } | 206 uint64 data) { } |
207 virtual void ProcessAttributeBuffer(enum DwarfAttribute attr, | 207 virtual void ProcessAttributeBuffer(enum DwarfAttribute attr, |
208 enum DwarfForm form, | 208 enum DwarfForm form, |
209 const char* data, | 209 const uint8_t *data, |
210 uint64 len) { } | 210 uint64 len) { } |
211 virtual void ProcessAttributeString(enum DwarfAttribute attr, | 211 virtual void ProcessAttributeString(enum DwarfAttribute attr, |
212 enum DwarfForm form, | 212 enum DwarfForm form, |
213 const string& data) { } | 213 const string& data) { } |
214 virtual void ProcessAttributeSignature(enum DwarfAttribute attr, | 214 virtual void ProcessAttributeSignature(enum DwarfAttribute attr, |
215 enum DwarfForm form, | 215 enum DwarfForm form, |
216 uint64 signture) { } | 216 uint64 signture) { } |
217 | 217 |
218 // Once we have reported all the DIE's attributes' values, we call | 218 // Once we have reported all the DIE's attributes' values, we call |
219 // this member function. If it returns false, we skip all the DIE's | 219 // this member function. If it returns false, we skip all the DIE's |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 enum DwarfAttribute attr, | 302 enum DwarfAttribute attr, |
303 enum DwarfForm form, | 303 enum DwarfForm form, |
304 int64 data); | 304 int64 data); |
305 void ProcessAttributeReference(uint64 offset, | 305 void ProcessAttributeReference(uint64 offset, |
306 enum DwarfAttribute attr, | 306 enum DwarfAttribute attr, |
307 enum DwarfForm form, | 307 enum DwarfForm form, |
308 uint64 data); | 308 uint64 data); |
309 void ProcessAttributeBuffer(uint64 offset, | 309 void ProcessAttributeBuffer(uint64 offset, |
310 enum DwarfAttribute attr, | 310 enum DwarfAttribute attr, |
311 enum DwarfForm form, | 311 enum DwarfForm form, |
312 const char* data, | 312 const uint8_t *data, |
313 uint64 len); | 313 uint64 len); |
314 void ProcessAttributeString(uint64 offset, | 314 void ProcessAttributeString(uint64 offset, |
315 enum DwarfAttribute attr, | 315 enum DwarfAttribute attr, |
316 enum DwarfForm form, | 316 enum DwarfForm form, |
317 const string &data); | 317 const string &data); |
318 void ProcessAttributeSignature(uint64 offset, | 318 void ProcessAttributeSignature(uint64 offset, |
319 enum DwarfAttribute attr, | 319 enum DwarfAttribute attr, |
320 enum DwarfForm form, | 320 enum DwarfForm form, |
321 uint64 signature); | 321 uint64 signature); |
322 void EndDIE(uint64 offset); | 322 void EndDIE(uint64 offset); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 // pushing lots of stack entries with handler_ set to NULL. | 354 // pushing lots of stack entries with handler_ set to NULL. |
355 std::stack<HandlerStack> die_handlers_; | 355 std::stack<HandlerStack> die_handlers_; |
356 | 356 |
357 // The root handler. We don't push it on die_handlers_ until we | 357 // The root handler. We don't push it on die_handlers_ until we |
358 // actually get the StartDIE call for the root. | 358 // actually get the StartDIE call for the root. |
359 RootDIEHandler *root_handler_; | 359 RootDIEHandler *root_handler_; |
360 }; | 360 }; |
361 | 361 |
362 } // namespace dwarf2reader | 362 } // namespace dwarf2reader |
363 #endif // COMMON_DWARF_DWARF2DIEHANDLER_H__ | 363 #endif // COMMON_DWARF_DWARF2DIEHANDLER_H__ |
OLD | NEW |