X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=converter%2Fbabeltrace.c;h=f16e06c464a6c3f0a33acc05441013c1507a3bb2;hp=2718a46176f9ad6c3340cd73fbd4bcbd53284851;hb=458af89d3baff393a4c38f70520fb51b811ad932;hpb=3be1e3c98864ad12cab2e53c42db5252193367f5 diff --git a/converter/babeltrace.c b/converter/babeltrace.c index 2718a461..f16e06c4 100644 --- a/converter/babeltrace.c +++ b/converter/babeltrace.c @@ -106,6 +106,7 @@ enum { OPT_CLOCK_FORCE_CORRELATE, OPT_STREAM_INTERSECTION, OPT_DEBUG_INFO_DIR, + OPT_DEBUG_INFO_FULL_PATH, }; /* @@ -138,6 +139,7 @@ static struct poptOption long_options[] = { { "stream-intersection", 0, POPT_ARG_NONE, NULL, OPT_STREAM_INTERSECTION, NULL, NULL }, #ifdef ENABLE_DEBUGINFO { "debug-info-dir", 0, POPT_ARG_STRING, NULL, OPT_DEBUG_INFO_DIR, NULL, NULL }, + { "debug-info-full-path", 0, POPT_ARG_NONE, NULL, OPT_DEBUG_INFO_FULL_PATH, NULL, NULL }, #endif { NULL, 0, 0, NULL, 0, NULL, NULL }, }; @@ -188,6 +190,7 @@ static void usage(FILE *fp) #ifdef ENABLE_DEBUGINFO fprintf(fp, " --debug-info-dir Directory in which to look for debugging information\n"); fprintf(fp, " files. (default: /usr/lib/debug/)\n"); + fprintf(fp, " --debug-info-full-path Show full debug info source and binary paths (if available)\n"); #endif list_formats(fp); fprintf(fp, "\n"); @@ -418,6 +421,9 @@ static int parse_options(int argc, char **argv) goto end; } break; + case OPT_DEBUG_INFO_FULL_PATH: + opt_debug_info_full_path = 1; + break; default: ret = -EINVAL; goto end;