Index: src/common/dwarf/dwarf2reader_die_unittest.cc |
diff --git a/src/common/dwarf/dwarf2reader_die_unittest.cc b/src/common/dwarf/dwarf2reader_die_unittest.cc |
index 4e34436931924ba736453e2fcd353a279b2cb7f3..b53104fbfdc45e737c0d16569c2aca37d0258f22 100644 |
--- a/src/common/dwarf/dwarf2reader_die_unittest.cc |
+++ b/src/common/dwarf/dwarf2reader_die_unittest.cc |
@@ -31,6 +31,7 @@ |
// dwarf2reader_die_unittest.cc: Unit tests for dwarf2reader::CompilationUnit |
+#include <stdint.h> |
#include <stdlib.h> |
#include <iostream> |
@@ -91,7 +92,7 @@ class MockDwarf2Handler: public Dwarf2Handler { |
MOCK_METHOD5(ProcessAttributeBuffer, void(uint64 offset, |
enum DwarfAttribute attr, |
enum DwarfForm form, |
- const char* data, |
+ const uint8_t *data, |
uint64 len)); |
MOCK_METHOD4(ProcessAttributeString, void(uint64 offset, |
enum DwarfAttribute attr, |
@@ -132,9 +133,11 @@ struct DIEFixture { |
assert(info.GetContents(&info_contents)); |
assert(abbrevs.GetContents(&abbrevs_contents)); |
section_map.clear(); |
- section_map[".debug_info"].first = info_contents.data(); |
+ section_map[".debug_info"].first |
+ = reinterpret_cast<const uint8_t *>(info_contents.data()); |
section_map[".debug_info"].second = info_contents.size(); |
- section_map[".debug_abbrev"].first = abbrevs_contents.data(); |
+ section_map[".debug_abbrev"].first |
+ = reinterpret_cast<const uint8_t *>(abbrevs_contents.data()); |
section_map[".debug_abbrev"].second = abbrevs_contents.size(); |
return section_map; |
} |