diff options
author | Christopher Ferris <cferris@google.com> | 2018-10-09 18:49:11 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2018-10-12 11:29:06 -0700 |
commit | 4a4e713870efc5d112a79dbf40a9c474d1f21031 (patch) | |
tree | 391432ca5c5c787869b8d5e8be80776855f780ec /libunwindstack/include/unwindstack | |
parent | 65abee8a9be611f20e7ed6788a63058a7f7949fc (diff) | |
download | unwinding-4a4e713870efc5d112a79dbf40a9c474d1f21031.tar.gz |
Fix up the definition of Elf::GetInfo.
The function should have returned a bool, so now it does.
Also use a different lighter weight function for validating the elf
in one place that didn't need to keep the max size value.
Test: Unit tests pass.
Change-Id: Ibde674e608091ba04abf22fad2fdc4dbdb2c6e73
Diffstat (limited to 'libunwindstack/include/unwindstack')
-rw-r--r-- | libunwindstack/include/unwindstack/Elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwindstack/include/unwindstack/Elf.h b/libunwindstack/include/unwindstack/Elf.h index f4cdbda..9af859d 100644 --- a/libunwindstack/include/unwindstack/Elf.h +++ b/libunwindstack/include/unwindstack/Elf.h @@ -94,7 +94,7 @@ class Elf { static bool IsValidElf(Memory* memory); - static void GetInfo(Memory* memory, bool* valid, uint64_t* size); + static bool GetInfo(Memory* memory, uint64_t* size); static uint64_t GetLoadBias(Memory* memory); |