It complies, works as expected. Please write more comments and push it.
- Is this patch part of some trac ticket/bugzilla? If your answer is yes,
write the number of ticket to the git commit message.
On Tuesday 09 of October 2012 12:07:27 Michal Toman wrote:
---
src/plugins/abrt-action-generate-core-backtrace.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/src/plugins/abrt-action-generate-core-backtrace.c
b/src/plugins/abrt-action-generate-core-backtrace.c index 1be46ad..9010aaf
100644
--- a/src/plugins/abrt-action-generate-core-backtrace.c
+++ b/src/plugins/abrt-action-generate-core-backtrace.c
@@ -25,6 +25,20 @@
static bool raw_fingerprints = false;
+static void oops_add_question_marks(GList *backtrace)
+{
+ GList *elem = backtrace;
+ struct backtrace_entry *entry;
+ while (elem)
+ {
+ entry = (struct backtrace_entry *)elem->data;
+ if (entry->function_initial_loc)
+ entry->fingerprint = btp_strdup("?");
+
+ elem = g_list_next(elem);
+ }
+}
+
static void hash_fingerprints(GList *backtrace)
{
GList *elem = backtrace;
@@ -144,7 +158,10 @@ int main(int argc, char **argv)
else if (strcmp(analyzer, "Python") == 0)
backtrace = btp_parse_python_backtrace(txt_backtrace);
else if (strcmp(analyzer, "Kerneloops") == 0 || strcmp(analyzer,
"vmcore") == 0) + {
backtrace = btp_parse_kerneloops(txt_backtrace, kernel);
+ oops_add_question_marks(backtrace);
+ }
else
error_msg_and_die(_("Core-backtraces are not supported for
'%s'"),
analyzer);