OLD | NEW |
| (Empty) |
1 This patch prevents valgrind from tracing into python.exe. | |
2 TODO(thestig) generalize this and submit upstream for | |
3 https://bugs.kde.org/show_bug.cgi?id=218689 | |
4 Index: coregrind/m_syswrap/syswrap-generic.c | |
5 =================================================================== | |
6 --- coregrind/m_syswrap/syswrap-generic.c (revision 10880) | |
7 +++ coregrind/m_syswrap/syswrap-generic.c (working copy) | |
8 @@ -2544,6 +2544,19 @@ | |
9 VG_(nuke_all_threads_except)( tid, VgSrc_ExitThread ); | |
10 VG_(reap_threads)(tid); | |
11 | |
12 + if (VG_(clo_trace_children)) { | |
13 + Char** program_args = (Char**)ARG2; | |
14 + if (program_args && program_args[0]) { | |
15 + Int k = 1; | |
16 + for (; program_args[k]; k++) { | |
17 + if (VG_(strstr)(program_args[k], "python.exe") != NULL) { | |
18 + VG_(clo_trace_children) = False; | |
19 + break; | |
20 + } | |
21 + } | |
22 + } | |
23 + } | |
24 + | |
25 // Set up the child's exe path. | |
26 // | |
27 if (VG_(clo_trace_children)) { | |
OLD | NEW |