Adjust libunwindstack MapInfo API

Test: m debuggerd_test
Change-Id: I63a2379bad3ace4755ae48bf0a83eaa0070f9077
This commit is contained in:
David Srbecky 2021-03-23 23:20:37 +00:00
parent 5d5e16db57
commit 847b2a371f

View file

@ -33,8 +33,7 @@ class UnwinderMock : public unwindstack::Unwinder {
void MockSetBuildID(uint64_t offset, const std::string& build_id) {
unwindstack::MapInfo* map_info = GetMaps()->Find(offset);
if (map_info != nullptr) {
std::string* new_build_id = new std::string(build_id);
map_info->build_id = new_build_id;
map_info->SetBuildID(std::string(build_id));
}
}
};