projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print bin location first
[babeltrace.git]
/
include
/
babeltrace
/
trace-debuginfo.h
diff --git
a/include/babeltrace/trace-debuginfo.h
b/include/babeltrace/trace-debuginfo.h
index 2733e99a3fc11e52739adce02b8d23b63a8878b2..ed6292319e29f080f03677c923c996022b690be6 100644
(file)
--- a/
include/babeltrace/trace-debuginfo.h
+++ b/
include/babeltrace/trace-debuginfo.h
@@
-52,10
+52,22
@@
void ctf_text_integer_write_debug_info(struct bt_stream_pos *ppos,
fprintf(pos->fp, ", debug_info = { ");
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 (debug_info_src->func) {
+ if (add_comma) {
+ fprintf(pos->fp, ", ");
+ }
+
fprintf(pos->fp, "func = \"%s\"",
debug_info_src->func);
fprintf(pos->fp, "func = \"%s\"",
debug_info_src->func);
- add_comma = true;
}
if (debug_info_src->src_path) {
}
if (debug_info_src->src_path) {
@@
-71,18
+83,6
@@
void ctf_text_integer_write_debug_info(struct bt_stream_pos *ppos,
debug_info_src->line_no);
}
debug_info_src->line_no);
}
- if (debug_info_src->bin_path) {
- if (add_comma) {
- fprintf(pos->fp, ", ");
- }
-
- 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);
- }
-
fprintf(pos->fp, " }");
}
}
fprintf(pos->fp, " }");
}
}
This page took
0.025571 seconds
and
4
git commands to generate.