X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=include%2Fbabeltrace%2Ftrace-debuginfo.h;h=ed6292319e29f080f03677c923c996022b690be6;hp=963ec97fb45ff6789199422746fc283e60742fba;hb=7fd3113e7081a50aab48adb346005d56a16fadbb;hpb=458af89d3baff393a4c38f70520fb51b811ad932 diff --git a/include/babeltrace/trace-debuginfo.h b/include/babeltrace/trace-debuginfo.h index 963ec97f..ed629231 100644 --- a/include/babeltrace/trace-debuginfo.h +++ b/include/babeltrace/trace-debuginfo.h @@ -46,18 +46,31 @@ void ctf_text_integer_write_debug_info(struct bt_stream_pos *ppos, /* Print debug info if available */ if (debug_info_src) { - if (debug_info_src->func || debug_info_src->filename) { + if (debug_info_src->func || debug_info_src->src_path || + debug_info_src->bin_path) { bool add_comma = false; fprintf(pos->fp, ", debug_info = { "); + if (debug_info_src->bin_path) { + fprintf(pos->fp, "bin = \"%s%s\"", + opt_debug_info_full_path ? + debug_info_src->bin_path : + debug_info_src->short_bin_path, + debug_info_src->bin_loc); + add_comma = true; + } + if (debug_info_src->func) { + if (add_comma) { + fprintf(pos->fp, ", "); + } + fprintf(pos->fp, "func = \"%s\"", debug_info_src->func); - add_comma = true; } - if (debug_info_src->filename) { + if (debug_info_src->src_path) { if (add_comma) { fprintf(pos->fp, ", "); } @@ -65,8 +78,8 @@ void ctf_text_integer_write_debug_info(struct bt_stream_pos *ppos, fprintf(pos->fp, "src = \"%s:%" PRIu64 "\"", opt_debug_info_full_path ? - debug_info_src->filename : - debug_info_src->short_filename, + debug_info_src->src_path : + debug_info_src->short_src_path, debug_info_src->line_no); }