Fix saving crash dump and add create crash dump
when exit function is called.
Also crashdumps size is slighthy reduced
because for backtrace we don't need to grab
the text section and heap section.
Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
Add global __GTHREADS definition to trick standard library into thinking
we have a proper threading support and that it should not used single
threaded locking policies. As a result shared pointers will use atomic
locking policy to synchronize access to reference counter.
Add own version of gthr.h to override __gthread_active_p.
Add cxa guard and release for globs.
Looks like there was conflict when __GTHREADS was set so own version of
atomicity.h is removed.
Co-authored-by: Alek Rudnik <aleksander.rudnik@mudita.com>
Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
Tested-by: Alek Rudnik <aleksander.rudnik@mudita.com>
Tested-by: Tomasz Krosnowski <tomasz.krosnowski@mudita.com>
Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>