[PATCH] D9600: Add scan-build python implementation
Laszlo Nagy via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 10 14:46:15 PST 2015
rizsotto.mailinglist added inline comments.
================
Comment at: tools/scan-build-py/libear/ear.c:141
@@ +140,3 @@
+ environ = *_NSGetEnviron();
+#endif
+ if (!initialized)
----------------
this call just sets up the `environ` variables for the `bear_capture_env_t` method, two lines down. that call saves the relevant variables... so, if before execv'ing somebody modify the variables we still have it saved. (by the way `Scons` is the tool which does this.) and when `call_execve` called it recovers from the saved environment.
there is a test against it. (tests/functional/cases/test_create_cdb.py:53)
> The issue I am seeing with library-interposition on OS X [...]
can you give me details what did you see? what was the test you were running?
http://reviews.llvm.org/D9600
More information about the cfe-commits
mailing list