Skip to content

Conversation

@Lekensteyn
Copy link
Contributor

Fixes a compile warning when LIBUNWIND is disabled,
fixes a truncated backtrace and improve the error message.

Two latter commits are for development.

@Lekensteyn Lekensteyn changed the title Fix implicit function when libunwind is disabled libunwind fixes (compile fix, fix error condition/message) Nov 19, 2014
@Lekensteyn
Copy link
Contributor Author

Hey @danni, what do you think about this and #8?

@danni
Copy link
Owner

danni commented Aug 8, 2015

Looks good. Can you rebase it?

The '#endif' is position on a weird place which results in a compile
warning (-Wimplicit-function). Fix this and print a diagnostic message
on startup if a backtrace is requested but support is missing.

Note: only affects builds where you manually disable HAVE_LIBUNWIND.
The length param of unw_get_proc_name already takes care of the
terminator, so remove the subtraction.

The manual describes that the error code is given by the negative, so
fix the condition checking against UNW_ENOMEM (verified by shrinking the
buffer).

Finally, the error message confused me (as a user) as it seems to
suggest something about the process name (rather than procedure).
Mention the more applicable "frame" instead (longer alternative:
"procedure name of frame").
Allow a different compiler to be specified and split the actual object
compile to a different target. Add a Phony target to avoid breaking when
a literal "all" or "clean" exist.
@Lekensteyn
Copy link
Contributor Author

Rebased and resolves conflicts by renaming CFLAGS to FLAGS.

danni added a commit that referenced this pull request Aug 11, 2015
libunwind fixes (compile fix, fix error condition/message)
@danni danni merged commit 6ef0958 into danni:master Aug 11, 2015
@danni
Copy link
Owner

danni commented Aug 11, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants