From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 21:20:57 +0200 Subject: Use our own variant of 'assert' and 'assert_perror'. Our variants print stack traces on failures. This will make locating errors much easier. --- exec/hostarch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec/hostarch.c') diff --git a/exec/hostarch.c b/exec/hostarch.c index a5650279..363fda69 100644 --- a/exec/hostarch.c +++ b/exec/hostarch.c @@ -42,7 +42,7 @@ elf_machine_matches_host (ElfW(Half) e_machine) (host_info_t) &hostinfo, &hostinfocnt); if (err) return err; - assert (hostinfocnt == HOST_BASIC_INFO_COUNT); + assert_backtrace (hostinfocnt == HOST_BASIC_INFO_COUNT); } #define CACHE(test) ({ __label__ here; host_type = &&here; \ -- cgit v1.2.3