unwind: minor refactoring

Related to abrt/abrt#829.

Signed-off-by: Martin Milata <mmilata@redhat.com>
unwind: support unwinding from core hook

In-memory unwinding of dying processes, related to abrt/abrt#gh829. The
implementation mostly mirrors code in src/stack.c of elfutils repo
(jankratochvil/corepattern branch).

Related to abrt/abrt#829.

Signed-off-by: Martin Milata <mmilata@redhat.com>
debug unwinding from core hook using satyr binary

Write "|/usr/bin/satyr debug unwind-from-hook %e %i %s" to
/proc/sys/kernel/core_pattern in order to use this. Before kernel 3.18
the %i flag is not available - you can use %p for single-thread
processes.

Related to abrt/abrt#829.

Signed-off-by: Martin Milata <mmilata@redhat.com>
Add only_crash_thread boolean to sr_core_stacktrace

If this boolean value is true it means the report only contains one
(crash) thread, as is the case with core stacktraces generated in
coredump hook.

Related to #829.

Signed-off-by: Martin Milata <mmilata@redhat.com>
python: add support for only_crash_thread

Signed-off-by: Martin Milata <mmilata@redhat.com>
Merge pull request #198 from abrt/abrt_gh829_live_unwind

Stack unwind from core dump handler