Commit 6997a5d3 authored by jess@apple.com's avatar jess@apple.com

Reviewed by Darin.

        * Scripts/gdb-safari: Set WEBKIT_UNSET_DYLD_FRAMEWORK_PATH in gdb's environment,
        so that Safari inherits it when launched. Preexisting code in WebKit checks this
        environment variable, and if set, unsets DYLD_FRAMEWORK_PATH, so that applications
        launched by Safari continue to use the standard system WebKit.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent f8479433
2008-02-26 Jessica Kahn <jess@apple.com>
Reviewed by Darin.
* Scripts/gdb-safari: Set WEBKIT_UNSET_DYLD_FRAMEWORK_PATH in gdb's environment,
so that Safari inherits it when launched. Preexisting code in WebKit checks this
environment variable, and if set, unsets DYLD_FRAMEWORK_PATH, so that applications
launched by Safari continue to use the standard system WebKit.
2008-02-25 Adam Roben <aroben@apple.com>
Fix run-webkit-tests after r30394
......
......@@ -47,8 +47,11 @@ die "Can't find gdb executable. Is gdb installed?\n" unless -x $gdbPath;
checkFrameworks();
# Put a command to set DYLD_FRAMEWORK_PATH in a temp file.
# Also set WEBKIT_UNSET_DYLD_FRAMEWORK_PATH to YES in this environment, so that
# executables launched by Safari don't inherit using the new frameworks.
my ($fh, $path) = mkstemp("/tmp/gdb-safari-XXXX");
print $fh "set env DYLD_FRAMEWORK_PATH $productDir\n";
print $fh "set env WEBKIT_UNSET_DYLD_FRAMEWORK_PATH YES\n";
# Start up Safari.
print "Start Safari under gdb with DYLD_FRAMEWORK_PATH set to point to built WebKit in $productDir.\n";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment