stack: show binary and source file names where a function is defined
authorMasatake YAMATO <yamato@redhat.com>
Tue, 17 Dec 2013 03:03:29 +0000 (12:03 +0900)
committerMark Wielaard <mjw@redhat.com>
Wed, 18 Dec 2013 10:53:56 +0000 (11:53 +0100)
commitc8c610bcfb9e90ab2d43c019da7eaade7017baec
tree5af1def37aee886ff2f2b75cae7794a5a40fbb7e
parentb3c810fb04a63813e0d0af28fd45fbd22c05df2e
stack: show binary and source file names where a function is defined

This patch adds the module and source file information to the
each stack trace line.  `-m' is for module file information
and `-s' is for source file information. `-v' is for both and more.

This is based on private discussion with Jan Kratochvil
<jan.kratochvil@redhat.com>.

In v2 patch, `-s' and `-m' options are introduced instead
of using `-v' repeatedly as suggested by Mark Wielaard <mjw@redhat.com>.

In v3 patch `-a' is added as extra option and source lines are
printed on their own line.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/stack.c