Re: [PATCH] stack: Improve error checking and exit code handling.

2014-01-02 Thread Jan Kratochvil
On Fri, 27 Dec 2013 22:37:52 +0100, Mark Wielaard wrote: > Check up front whether we attached correctly, if not error out. Make sure > callbacks report -1 only on real errors and DWARF_CB_ABORT if exiting early > (but not in error). Handle all errors from frame callback in print_frames > after prin

[PATCH] stack: Improve error checking and exit code handling.

2013-12-27 Thread Mark Wielaard
Check up front whether we attached correctly, if not error out. Make sure callbacks report -1 only on real errors and DWARF_CB_ABORT if exiting early (but not in error). Handle all errors from frame callback in print_frames after printing of good frames. Print as much information as possible like t