gstinfo: Rework stack trace detection a bit
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 18 Jun 2019 22:09:59 +0000 (03:39 +0530)
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>
Mon, 1 Jul 2019 10:36:09 +0000 (10:36 +0000)
commit4ba6898f2419c27e2c98886fb0e2649c96cb80ea
treeacc28b99fa79fb5e3e53b430b0f618b253e6bda4
parent145f8546c4d95812c19e8e2930305c96d1011071
gstinfo: Rework stack trace detection a bit

Ensure that the code paths for HAVE_UNWIND and HAVE_DBGHELP are never
taken at the same time, even if the build file code changes.

Prefer DbgHelp over libunwind on Windows in case both are somehow
available because DbgHelp is only available when building with the
MSVC toolchain, and libunwind won't give us debug symbols from objects
built with the MSVC toolchain.

Also, print slightly more useful messages for the level of stack trace
support enabled, and document what each if conditional does.
gst/gstinfo.c
meson.build