summaryrefslogtreecommitdiff
path: root/libunwindstack/Symbols.cpp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-06-28 18:56:52 -0700
committerChristopher Ferris <cferris@google.com>2017-06-29 10:29:43 -0700
commiteb1dd4bad2be58cfd845030d173b6935c758ce88 (patch)
tree29e9350ce4967954662a33c6ed92125f9d2ce8d9 /libunwindstack/Symbols.cpp
parenta8a1424cddca399f2912fe2caaba867a7be9a7ba (diff)
downloadunwinding-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.cpp4
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);
}