[PATCH BlueZ 1/2] android/system-emulator: Pass --track-origin=yes to valgrind

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>

This adds --track-origin=yes option:

  "Controls whether Memcheck tracks the origin of uninitialised values.
   By default, it does not, which means that although it can tell you
   that an uninitialised value is being used in a dangerous way, it
   cannot tell you where the uninitialised value came from. This often
   makes it difficult to track down the root problem."
---
 android/system-emulator.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/android/system-emulator.c b/android/system-emulator.c
index dc46814..c1b1b25 100644
--- a/android/system-emulator.c
+++ b/android/system-emulator.c
@@ -50,7 +50,7 @@ static pid_t snoop_pid = -1;
 static void ctl_start(void)
 {
 	char prg_name[PATH_MAX + 1];
-	char *prg_argv[5];
+	char *prg_argv[6];
 	char *prg_envp[3];
 	pid_t pid;
 
@@ -58,9 +58,10 @@ static void ctl_start(void)
 
 	prg_argv[0] = "/usr/bin/valgrind";
 	prg_argv[1] = "--leak-check=full";
-	prg_argv[2] = prg_name;
-	prg_argv[3] = "-d";
-	prg_argv[4] = NULL;
+	prg_argv[2] = "--track-origins=yes";
+	prg_argv[3] = prg_name;
+	prg_argv[4] = "-d";
+	prg_argv[5] = NULL;
 
 	prg_envp[0] = "G_SLICE=always-malloc";
 	prg_envp[1] = "G_DEBUG=gc-friendly";
-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux