This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 printing of good frames. Print as much information as possible like
> tid, address and module name if known with error messages. Only exit with
> exit code zero if everything went fine. Exit with error code one if there
> were any non-fatal errors. Exit with error code two if no frames could be
> printed or a fatal error occurred.

OK, thanks, nice fix up.


Jan

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]