Changeset 215105 in webkit


Ignore:
Timestamp:
Apr 7, 2017 11:49:57 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

[JSC] Change --debug option to --debugger
https://bugs.webkit.org/show_bug.cgi?id=170587

Patch by Caio Lima <Caio Lima> on 2017-04-07
Reviewed by Keith Miller.

  • Scripts/run-jsc:

This patch is changing the new debugger flag for Tools/Scripts/run-jsc
to --debugger to avoid shadowing --debug flag used to run JSC with
Debug build.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r215096 r215105  
     12017-04-07  Caio Lima  <ticaiolima@gmail.com>
     2
     3        [JSC] Change --debug option to --debugger
     4        https://bugs.webkit.org/show_bug.cgi?id=170587
     5
     6        Reviewed by Keith Miller.
     7
     8        * Scripts/run-jsc:
     9
     10        This patch is changing the new debugger flag for Tools/Scripts/run-jsc
     11        to --debugger to avoid shadowing --debug flag used to run JSC with
     12        Debug build.
     13
    1142017-04-07  Brent Fulgham  <bfulgham@apple.com>
    215
  • trunk/Tools/Scripts/run-jsc

    r214945 r215105  
    3636use Getopt::Long;
    3737use webkitdirs;
    38 Getopt::Long::Configure("pass_through");
     38Getopt::Long::Configure("no_auto_abbrev", "pass_through");
    3939
    40 my $usage = "Usage: run-jsc [--count run_count] [--debug] shell_file [file2...]";
     40my $usage = "Usage: run-jsc [--count run_count] [--debugger] shell_file [file2...]";
    4141
    4242my $count = 1;
    43 my $debug = 0;
     43my $debugger = 0;
    4444
    4545GetOptions("count|c=i" => \$count);
    46 GetOptions("debug" => \$debug);
     46GetOptions("debugger" => \$debugger);
    4747
    4848setConfiguration();
    4949
    5050my $jsc;
    51 if ($debug) {
    52     my $debugger = defined($ENV{"DEBUGGER"}) ? $ENV{"DEBUGGER"} : "lldb";
    53     $jsc = $debugger . " " . File::Spec->catfile(jscProductDir(), "jsc -- ") . "@ARGV";
     51if ($debugger) {
     52    my $debuggerCmd = defined($ENV{"DEBUGGER"}) ? $ENV{"DEBUGGER"} : "lldb";
     53    $jsc = $debuggerCmd . " " . File::Spec->catfile(jscProductDir(), "jsc -- ") . "@ARGV";
    5454} else {
    5555    $jsc = File::Spec->catfile(jscProductDir(), "jsc ") . "@ARGV";
Note: See TracChangeset for help on using the changeset viewer.