Add --debug-info-full-path option and shorten source name
[babeltrace.git] / include / babeltrace / trace-debuginfo.h
index adbad09d6c6533082aaafb0374f750706c464cee..963ec97fb45ff6789199422746fc283e60742fba 100644 (file)
@@ -62,9 +62,11 @@ void ctf_text_integer_write_debug_info(struct bt_stream_pos *ppos,
                                        fprintf(pos->fp, ", ");
                                }
 
-                               fprintf(pos->fp, "source_loc = \"%s:%" PRIu64
+                               fprintf(pos->fp, "src = \"%s:%" PRIu64
                                                "\"",
-                                               debug_info_src->filename,
+                                               opt_debug_info_full_path ?
+                                               debug_info_src->filename :
+                                               debug_info_src->short_filename,
                                                debug_info_src->line_no);
                        }
 
This page took 0.024091 seconds and 4 git commands to generate.