Support print_cmdline in LSan.
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Mon, 7 Nov 2016 17:16:48 +0000 (20:16 +0300)
committerIvan Baravy <i.baravy@samsung.com>
Wed, 22 Feb 2017 09:22:11 +0000 (12:22 +0300)
Change-Id: I65d37582e6b5c3d54f8628e96edbaf4cbfc7c337
Signed-off-by: Maxim Ostapenko <m.ostapenko@samsung.com>
Signed-off-by: Dongkyun, Son <dongkyun.s@samsung.com>
libsanitizer/lsan/lsan_common.cc
libsanitizer/sanitizer_common/sanitizer_flags.inc

index 1bc0a78..668e2f4 100644 (file)
@@ -439,6 +439,8 @@ static bool CheckForLeaks() {
     PrintMatchedSuppressions();
   if (unsuppressed_count > 0) {
     param.leak_report.PrintSummary();
+    if (common_flags()->print_cmdline)
+       PrintCmdline();
     return true;
   }
   return false;
index 207b9fe..75f98ac 100644 (file)
@@ -194,4 +194,4 @@ COMMON_FLAG(bool, suppress_equal_pcs, true,
             "Deduplicate multiple reports for single source location in "
             "halt_on_error=false mode (asan only).")
 COMMON_FLAG(bool, print_cmdline, false, "Print command line on crash "
-            "(asan and ubsan only).")
+            "(asan, ubsan and lsan only).")