Warn if timeout used with debugger.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 5 Apr 2006 19:33:33 +0000 (19:33 +0000)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 5 Apr 2006 19:33:33 +0000 (19:33 +0000)
Thanks to Alicia Chen <achen530@stanford.edu> for question.

src/utils/pintos

index eee638407f0507521bf8624a5cf8e64ae26fefa3..0c1f34d54aab6c79d1a7f6ec7cb81e0380c0545d 100755 (executable)
@@ -85,6 +85,9 @@ sub parse_command_line {
     $sim = "bochs" if !defined $sim;
     $debug = "none" if !defined $debug;
     $vga = "window" if !defined $vga;
+
+    print "warning: -T or --timeout should not be used with --$debug\n"
+      if defined ($timeout) && $debug ne 'none';
 }
 
 # usage($exitcode).