New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add crash-type-agnostic optimized thread generators #64
Milestone
Comments
btparser generates an optimized thread in the following format for CCpp:
And I would expected that it is possible to generate a similar stacktrace for all crash types. It will make bugzilla reports clearer. Python standard backtrace:
Python optimized backtrace:
|
mmilata
added a commit
that referenced
this issue
May 30, 2013
Type-agnostic API means that we expose several functions that operate on frames (or threads or stacktraces) regardless of their problem type. This is accomplished by looking at the type member of each structure (introduced in previous patch) and using it to look up the right function for the type. Furthermore, the implementations of the type-agnostic functions can themselves work on multiple structure types, which can prevent some code duplication. A sr_stacktrace_to_short_text function is provided as an example, closing #64. Related to #63 and related to #66 as the requested functionality should be easier to implement now. Note: I've fixed an obvious typo in lib/utils.h - (assert((type > 0) && (type) < SR_REPORT_NUM + (assert((type > SR_REPORT_INVALID) && (type) < SR_REPORT_NUM Jakub Filak Signed-off-by: Martin Milata <mmilata@redhat.com> Signed-off-by: Jakub Filak <jfilak@redhat.com>
Implemented in 7ef55a0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The functions should work as sr_gdb_stacktrace_get_optimized_thread() Optimized stacktraces are used by bugzilla reporter when an original backtrace is too big to be added to comment 0.
The text was updated successfully, but these errors were encountered: