[Bio] / FigKernelPackages / Tracer.pm Repository:
ViewVC logotype

Diff of /FigKernelPackages/Tracer.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.84, Thu May 3 12:28:00 2007 UTC revision 1.88, Thu Jun 14 19:27:32 2007 UTC
# Line 579  Line 579 
579      my $tkey = EmergencyKey();      my $tkey = EmergencyKey();
580      # Add the tracing options.      # Add the tracing options.
581      if (! exists $options->{trace}) {      if (! exists $options->{trace}) {
582          $options->{trace} = ['E', "tracing level (E for emergency tracing)"];          $options->{trace} = ['2', "tracing level (E for emergency tracing)"];
583      }      }
584      $options->{sql} = [0, "turn on SQL tracing"];      $options->{sql} = [0, "turn on SQL tracing"];
585      $options->{help} = [0, "display command-line options"];      $options->{help} = [0, "display command-line options"];
# Line 1264  Line 1264 
1264              if (!$package) {              if (!$package) {
1265                  $category = "main";                  $category = "main";
1266              } else {              } else {
1267                  $category = $package;                  my @cats = split /::/, $package;
1268                    $category = $cats[$#cats];
1269              }              }
1270          }          }
1271          # Save the category name.          # Save the category name.
# Line 1772  Line 1773 
1773  sub Confess {  sub Confess {
1774      # Get the parameters.      # Get the parameters.
1775      my ($message) = @_;      my ($message) = @_;
1776        if (! defined($FIG_Config::no_tool_hdr)) {
1777            # Here we have a tool header. Display its length so that the user can adjust the line numbers.
1778            #
1779            # Don't try to GetFile before checking if the file exists, otherwise we
1780            # have an infinite loop. We shoudl probably look for tool_hdr in the right place
1781            # though.
1782            #
1783            if (-f "$FIG_Config::common_runtime/tool_hdr")
1784            {
1785                my @lines = GetFile("$FIG_Config::common_runtime/tool_hdr");
1786                Trace("Tool header has " . scalar(@lines) . " lines.");
1787            }
1788        }
1789      # Trace the call stack.      # Trace the call stack.
1790      Cluck($message);      Cluck($message);
1791      # Abort the program.      # Abort the program.
# Line 2323  Line 2337 
2337      # Get the parameters.      # Get the parameters.
2338      my ($tkey, $myDest) = @_;      my ($tkey, $myDest) = @_;
2339      # Declare the return variable.      # Declare the return variable.
2340      my $retVal;      my $retVal = $myDest;
2341      # Process according to the destination value.      # Process according to the destination value.
2342      if ($myDest eq 'FILE') {      if ($myDest eq 'FILE') {
2343          $retVal = ">" . EmergencyFileTarget($tkey);          $retVal = ">" . EmergencyFileTarget($tkey);
# Line 3175  Line 3189 
3189      return $retVal;      return $retVal;
3190  }  }
3191    
3192    
3193  1;  1;

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.88

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3