From 7362812dd7a3b4a726d5051adca6c76b814880a8 Mon Sep 17 00:00:00 2001 From: "mitz@apple.com" Date: Fri, 30 Dec 2011 04:59:05 +0000 Subject: [PATCH] debug-safari --no-saved-state fails to start the debugger https://bugs.webkit.org/show_bug.cgi?id=75374 Reviewed by Sam Weinig. * Scripts/webkitdirs.pm: (execMacWebKitAppForDebugging): Pass the --args option to gdb so that it passes arguments to the executable being debugged. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@103834 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- Tools/ChangeLog | 11 +++++++++++ Tools/Scripts/webkitdirs.pm | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Tools/ChangeLog b/Tools/ChangeLog index 515d7ae..15b722d 100644 --- a/Tools/ChangeLog +++ b/Tools/ChangeLog @@ -1,3 +1,14 @@ +2011-12-29 Dan Bernstein + + debug-safari --no-saved-state fails to start the debugger + https://bugs.webkit.org/show_bug.cgi?id=75374 + + Reviewed by Sam Weinig. + + * Scripts/webkitdirs.pm: + (execMacWebKitAppForDebugging): Pass the --args option to gdb so that it passes arguments to + the executable being debugged. + 2011-12-29 Sam Weinig It should be easier to iterate a Vector backwards diff --git a/Tools/Scripts/webkitdirs.pm b/Tools/Scripts/webkitdirs.pm index 1888b07..a5666a8 100755 --- a/Tools/Scripts/webkitdirs.pm +++ b/Tools/Scripts/webkitdirs.pm @@ -2333,7 +2333,7 @@ sub execMacWebKitAppForDebugging($) $ENV{DYLD_FRAMEWORK_PATH} = $productDir; $ENV{WEBKIT_UNSET_DYLD_FRAMEWORK_PATH} = "YES"; my @architectureFlags = ("-arch", architecture()); - exec { $gdbPath } $gdbPath, @architectureFlags, $appPath, argumentsForRunAndDebugMacWebKitApp() or die; + exec { $gdbPath } $gdbPath, @architectureFlags, "--args", $appPath, argumentsForRunAndDebugMacWebKitApp() or die; } sub debugSafari -- 2.7.4