[PATCH mtd-utils] integck: only use execinfo.h when INTEGCK_DEBUG is enabled

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sat Jul 16 06:34:44 PDT 2016


Hello,

On Sat, 16 Jul 2016 15:31:15 +0200, Richard Weinberger wrote:

> But this means in uClibc and musl systems INTEGCK_DEBUG is still not
> usable, right?

Correct.

> Instead of papering over the issue we should bite the bullet and add a
> libmissing to mtd-utils to same functionality across all kind of libcs.

I'm not sure you really want a copy in libmissing of the backtrace
functionality.

It would be so much better if mtd-utils were using autoconf to
automatically detect the availability of execinfo.h, and adjust the
functionality accordingly. Indeed, having the backtrace is useful, but
is also not mandatory to use integck.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the linux-mtd mailing list