X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Futils%2Fpintos;h=eee638407f0507521bf8624a5cf8e64ae26fefa3;hb=c756825357f433537caec55ac12cf0104be3a6f4;hp=83954bb951fdabf2a8e7c019e6344fac92bbb7ac;hpb=52c038240d5fa59e4ac230e5fc7587aec328e5d3;p=pintos-anon diff --git a/src/utils/pintos b/src/utils/pintos index 83954bb..eee6384 100755 --- a/src/utils/pintos +++ b/src/utils/pintos @@ -364,26 +364,20 @@ sub run_vm { # Runs Bochs. sub run_bochs { # Select Bochs binary based on the chosen debugger. - my ($bin); - if ($debug eq 'none') { - $bin = 'bochs'; - } elsif ($debug eq 'monitor') { - $bin = 'bochs-dbg'; - } elsif ($debug eq 'gdb') { - $bin = 'bochs-gdb'; - } + my ($bin) = $debug eq 'monitor' ? 'bochs-dbg' : 'bochs'; # Write bochsrc.txt configuration file. open (BOCHSRC, ">", "bochsrc.txt") or die "bochsrc.txt: create: $!\n"; print BOCHSRC <