Adjust libunwindstack MapInfo API
Test: m debuggerd_test Change-Id: I63a2379bad3ace4755ae48bf0a83eaa0070f9077
This commit is contained in:
parent
5d5e16db57
commit
847b2a371f
1 changed files with 1 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue