changeset 29b7b7aba911 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=29b7b7aba911
description:
        ruby: Check stderr and not stdin before hanging on an assert.

diffstat:

2 files changed, 3 insertions(+), 3 deletions(-)
src/mem/ruby/common/Debug.hh  |    4 ++--
src/mem/slicc/slicc_global.hh |    2 +-

diffs (33 lines):

diff -r 92318648212f -r 29b7b7aba911 src/mem/ruby/common/Debug.hh
--- a/src/mem/ruby/common/Debug.hh      Mon May 11 10:38:46 2009 -0700
+++ b/src/mem/ruby/common/Debug.hh      Mon May 11 10:38:46 2009 -0700
@@ -154,7 +154,7 @@
            << __PRETTY_FUNCTION__ << " in "\
            << __FILE__ << ":"\
            << __LINE__ << endl << flush;\
-      if(isatty(STDIN_FILENO)) {\
+      if(isatty(STDERR_FILENO)) {\
         cerr << "At this point you might want to attach a debug to ";\
         cerr << "the running and get to the" << endl;\
         cerr << "crash site; otherwise press enter to continue" << endl;\
@@ -175,7 +175,7 @@
          << __PRETTY_FUNCTION__ << " in "\
          << __FILE__ << ":"\
          << __LINE__ << endl << flush;\
-    if(isatty(STDIN_FILENO)) {\
+    if(isatty(STDERR_FILENO)) {\
       cerr << "press enter to continue" << endl;\
       cerr << "PID: " << getpid();\
       cerr << endl << flush; \
diff -r 92318648212f -r 29b7b7aba911 src/mem/slicc/slicc_global.hh
--- a/src/mem/slicc/slicc_global.hh     Mon May 11 10:38:46 2009 -0700
+++ b/src/mem/slicc/slicc_global.hh     Mon May 11 10:38:46 2009 -0700
@@ -67,7 +67,7 @@
            << __PRETTY_FUNCTION__ << " in "\
            << __FILE__ << ":"\
            << __LINE__ << endl;\
-      if(isatty(STDIN_FILENO)) {\
+      if(isatty(STDERR_FILENO)) {\
         cerr << "At this point you might want to attach a debug to ";\
         cerr << "the running and get to the" << endl;\
         cerr << "crash site; otherwise press enter to continue" << endl;\
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to