From a8d42c408d3e72b6fbd835e63d80ff05db28c5f4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 18 Jul 2008 01:13:29 +0000 Subject: [PATCH] Fix bug in --sim and --debug options reported by Bob Lantz. --- src/utils/pintos | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/pintos b/src/utils/pintos index 2b5dad9..9413205 100755 --- a/src/utils/pintos +++ b/src/utils/pintos @@ -46,12 +46,12 @@ sub parse_command_line { while ((my $arg = shift (@kernel_args)) ne '--') { push (@ARGV, $arg); } - GetOptions ("sim=s" => sub { set_sim (@_) }, + GetOptions ("sim=s" => sub { set_sim ($_[1]) }, "bochs" => sub { set_sim ("bochs") }, "qemu" => sub { set_sim ("qemu") }, "player" => sub { set_sim ("player") }, - "debug=s" => sub { set_debug (@_) }, + "debug=s" => sub { set_debug ($_[1]) }, "no-debug" => sub { set_debug ("none") }, "monitor" => sub { set_debug ("monitor") }, "gdb" => sub { set_debug ("gdb") }, -- 2.30.2