static void java_append_duphash_text(struct sr_java_frame *frame, enum sr_duphash_flags flags, struct sr_strbuf *strbuf) { if (frame->name) sr_strbuf_append_strf(strbuf, "%s\n", frame->name); else sr_strbuf_append_strf(strbuf, "%s/%s:%"PRIu32"\n", OR_UNKNOWN(frame->class_path), OR_UNKNOWN(frame->file_name), frame->file_line); }
static void ruby_append_bthash_text(struct sr_ruby_frame *frame, enum sr_bthash_flags flags, struct sr_strbuf *strbuf) { sr_strbuf_append_strf(strbuf, "%s, %"PRIu32", %s, %d, %"PRIu32", %"PRIu32"\n", OR_UNKNOWN(frame->file_name), frame->file_line, OR_UNKNOWN(frame->function_name), frame->special_function, frame->block_level, frame->rescue_level); }
static void python_append_bthash_text(struct sr_python_frame *frame, enum sr_bthash_flags flags, struct sr_strbuf *strbuf) { sr_strbuf_append_strf(strbuf, "%s, %d, %"PRIu32", %s, %d, %s\n", OR_UNKNOWN(frame->file_name), frame->special_file, frame->file_line, OR_UNKNOWN(frame->function_name), frame->special_function, OR_UNKNOWN(frame->line_contents)); }
static void java_append_bthash_text(struct sr_java_frame *frame, enum sr_bthash_flags flags, struct sr_strbuf *strbuf) { sr_strbuf_append_strf(strbuf, "%s, %s, %"PRIu32", %s, %d, %d, %s\n", OR_UNKNOWN(frame->name), OR_UNKNOWN(frame->file_name), frame->file_line, OR_UNKNOWN(frame->class_path), frame->is_native, frame->is_exception, OR_UNKNOWN(frame->message)); }
static void python_append_bthash_text(struct sr_python_stacktrace *stacktrace, enum sr_bthash_flags flags, struct sr_strbuf *strbuf) { sr_strbuf_append_strf(strbuf, "Exception: %s\n", OR_UNKNOWN(stacktrace->exception_name)); sr_strbuf_append_char(strbuf, '\n'); }
static void koops_append_bthash_text(struct sr_koops_stacktrace *stacktrace, enum sr_bthash_flags flags, struct sr_strbuf *strbuf) { sr_strbuf_append_strf(strbuf, "Version: %s\n", OR_UNKNOWN(stacktrace->version)); sr_strbuf_append_str(strbuf, "Flags: "); for (struct sr_taint_flag *f = sr_flags; f->letter; f++) { bool val = *(bool *)((void *)stacktrace + f->member_offset); if (val == false) continue; } sr_strbuf_append_char(strbuf, '\n'); sr_strbuf_append_str(strbuf, "Modules: "); for (char **mod = stacktrace->modules; mod && *mod; mod++) { sr_strbuf_append_str(strbuf, *mod); if (*(mod+1)) sr_strbuf_append_str(strbuf, ", "); } sr_strbuf_append_char(strbuf, '\n'); sr_strbuf_append_char(strbuf, '\n'); }
static void core_append_bthash_text(struct sr_core_stacktrace *stacktrace, enum sr_bthash_flags flags, struct sr_strbuf *strbuf) { sr_strbuf_append_strf(strbuf, "Executable: %s\n", OR_UNKNOWN(stacktrace->executable)); sr_strbuf_append_strf(strbuf, "Signal: %"PRIu16"\n", stacktrace->signal); sr_strbuf_append_char(strbuf, '\n'); }
static void ruby_append_duphash_text(struct sr_ruby_frame *frame, enum sr_duphash_flags flags, struct sr_strbuf *strbuf) { /* filename:line */ sr_strbuf_append_strf(strbuf, "%s:%"PRIu32"\n", OR_UNKNOWN(frame->file_name), frame->file_line); }