Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[Manta] r1947 - in trunk/Core: Exceptions Thread


Chronological Thread 
  • From: thiago@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [Manta] r1947 - in trunk/Core: Exceptions Thread
  • Date: Wed, 26 Dec 2007 00:13:58 -0700 (MST)

Author: thiago
Date: Wed Dec 26 00:13:57 2007
New Revision: 1947

Modified:
   trunk/Core/Exceptions/Exception.cc
   trunk/Core/Thread/Thread.cc
Log:
Goodbye cvd. Also modified prompt to say gdb instead of dbx since
that's what most of us use (I guess I could remove dbx from the code
as well, but it's now hidden and not hurting anyone. cvd on the other
hand was a seperate prompt option which always annoyed me...


Modified: trunk/Core/Exceptions/Exception.cc
==============================================================================
--- trunk/Core/Exceptions/Exception.cc  (original)
+++ trunk/Core/Exceptions/Exception.cc  Wed Dec 26 00:13:57 2007
@@ -98,7 +98,7 @@
 
   // Set this environment variable if you want to have a default
   // response to the question below.  Value values are:
-  // ask, dbx, cvd, throw, abort
+  // ask, dbx, throw, abort
   char* emode = getenv("SCI_EXCEPTIONMODE");
   if(!emode)
     emode = "dbx"; // Default exceptionmode
@@ -117,7 +117,7 @@
   for(;;){
     if(strcasecmp(emode, "ask") == 0){
       // Ask the user
-      cerr << "\nthrow(t)/dbx(d)/cvd(c)/abort(a)? ";
+      cerr << "\nthrow(t)/gdb(d)/abort(a)? ";
       emode=0;
       while(!emode){
         char action;
@@ -137,9 +137,6 @@
         case 'd': case 'D':
           emode="dbx";
           break;
-        case 'c': case 'C':
-          emode="cvd";
-          break;
         case 'a': case 'A':
           emode="abort";
           break;
@@ -169,17 +166,6 @@
         sprintf(command, "xterm -e gdb -c %d&", getpid());
 #endif
       }
-      cerr << "Starting: " << command << '\n';
-      system(command);
-      emode="ask";
-#endif
-    } else if(strcasecmp(emode, "cvd") == 0){
-#if defined( REDSTORM )
-      cout << "Error: running debugger at exception is not supported on 
RedStorm\n";
-#else
-      // Fire up the slow, fancy debugger
-      char command[100];
-      sprintf(command, "cvd -pid %d &", getpid());
       cerr << "Starting: " << command << '\n';
       system(command);
       emode="ask";

Modified: trunk/Core/Thread/Thread.cc
==============================================================================
--- trunk/Core/Thread/Thread.cc (original)
+++ trunk/Core/Thread/Thread.cc Wed Dec 26 00:13:57 2007
@@ -303,7 +303,7 @@
   for (;;) {
     if (StrCaseCmp(smode, "ask") == 0) {
       char buf[100];
-      fprintf(stderr, "resume(r)/dbx(d)/cvd(c)/kill thread(k)/exit(e)? ");
+      fprintf(stderr, "resume(r)/gdb(d)/kill thread(k)/exit(e)? ");
       fflush(stderr);
       while(read(fileno(stdin), buf, 100) <= 0){
         if(errno != EINTR){
@@ -320,9 +320,6 @@
       case 'd': case 'D':
         smode = "dbx";
         break;
-      case 'c': case 'C':
-        smode = "cvd";
-        break;
       case 'k': case 'K':
         smode = "kill";
         break;
@@ -351,15 +348,6 @@
         sprintf(command, "xterm -e gdb -c %d &", getpid());
 #endif
       }
-      system(command);
-      smode = "ask";
-#endif
-    } else if (StrCaseCmp(smode, "cvd") == 0) {
-#if defined( REDSTORM )
-      printf("Error: running debugger at exception is not supported on 
RedStorm\n");
-#else
-      char command[500];
-      sprintf(command, "cvd -pid %d &", getpid());
       system(command);
       smode = "ask";
 #endif




  • [Manta] r1947 - in trunk/Core: Exceptions Thread, thiago, 12/26/2007

Archive powered by MHonArc 2.6.16.

Top of page