diff options
author | Christopher Ferris <cferris@google.com> | 2017-06-28 18:56:52 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2017-06-29 10:29:43 -0700 |
commit | eb1dd4bad2be58cfd845030d173b6935c758ce88 (patch) | |
tree | 29e9350ce4967954662a33c6ed92125f9d2ce8d9 /libunwindstack/Symbols.cpp | |
parent | a8a1424cddca399f2912fe2caaba867a7be9a7ba (diff) | |
download | unwinding-eb1dd4bad2be58cfd845030d173b6935c758ce88.tar.gz |
Remove assert, use CHECK instead.
- Use the CHECK macro everywhere that assert was used.
- Remove the _debug version of the tests and leave the CHECK macro so
it's always checking in the code.
Bug: 23762183
Test: Ran unit tests.
Change-Id: Ie705eedae393d0e95bb9d99f852687a11881aef1
Diffstat (limited to 'libunwindstack/Symbols.cpp')
-rw-r--r-- | libunwindstack/Symbols.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libunwindstack/Symbols.cpp b/libunwindstack/Symbols.cpp index 86c1233..edc2187 100644 --- a/libunwindstack/Symbols.cpp +++ b/libunwindstack/Symbols.cpp @@ -14,12 +14,12 @@ * limitations under the License. */ -#include <assert.h> #include <elf.h> #include <stdint.h> #include <string> +#include "Check.h" #include "Memory.h" #include "Symbols.h" @@ -58,7 +58,7 @@ bool Symbols::GetName(uint64_t addr, uint64_t load_bias, Memory* elf_memory, std if (symbols_.size() != 0) { const Info* info = GetInfoFromCache(addr); if (info) { - assert(addr >= info->start_offset && addr <= info->end_offset); + CHECK(addr >= info->start_offset && addr <= info->end_offset); *func_offset = addr - info->start_offset; return elf_memory->ReadString(info->str_offset, name, str_end_ - info->str_offset); } |