Serapheim Dimitropoulos 6f1db5f37e
Unconditionally enable debugging for libzpool
We already enable -DDEBUG unconditionally (meaning regardless
of this is a debug build or a performance build) for zdb and
ztest as they are mostly used for development and debugging.

This patch enables -DDEBUG for libzpool extending the debugging
checks for zdb, ztest, and a couple of other test utilities.

In addition to passing -DDEBUG we also enable -DZFS_DEBUG so
all assertion checks work s expected. We do so not only in
libzpool but in every utility that links to it, even if the
utility doesn't directly use any functionality wrapped in
ZFS_DEBUG macro definitions. The reason is that these utilities
may still include headers that contain structs that have more
fields when ZFS_DEBUG is defined. This can be a problem as
enabling that flag for libzpool but not for zdb can lead into
random problems (e.g. segmentation faults) as zdb may be have
an incorrect view of a struct passed to it by libzpool.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #10549
2020-07-10 15:30:31 -07:00
..
2016-03-16 13:46:16 -07:00
2016-03-16 13:46:16 -07:00
2017-05-22 12:34:32 -04:00
2020-06-18 12:20:38 -07:00
2020-06-09 21:24:09 -07:00
2019-12-18 12:29:43 -08:00
2019-12-18 12:29:43 -08:00
2017-05-22 12:34:32 -04:00
2020-07-10 14:26:00 -07:00
2019-09-02 18:14:53 -07:00
2016-03-16 13:46:16 -07:00
2016-03-16 13:46:16 -07:00
2019-06-19 09:48:12 -07:00
2016-03-16 13:46:16 -07:00
2017-05-22 12:34:32 -04:00