Ignore:
Timestamp:
Jul 27, 2006, 5:00:40 PM (14 years ago)
Author:
orlov
Message:
  • New RTS option -break -- for breaking in functions compiled with -dbg.
  • Table support for Values and Entries new library functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/runtime/rf_core.cc

    r1987 r2040  
    9393char** argv ;
    9494
     95int breakc ;
     96char** breakv ;
     97
    9598static int parse_RTS (int _argc, char** const _argv)
    9699{
     
    177180      continue;
    178181    }
    179     printf("Unknown RTS option %.25s\n", _argv[i]);
     182    if (strcmp("-break", _argv[i]) == 0) {
     183      i++;
     184      if (i < _argc) {
     185        breakv[breakc++] = _argv[i++];
     186        continue;
     187      }
     188      printf("RTS option -break requires parameter -- a name of function to break at\n");
     189      exit(-1);
     190    }
     191    printf("Unknown RTS option `%.25s'\n", _argv[i]);
    180192    exit(-1);
    181193  }
     
    222234    argc = 0;
    223235    argv = static_cast<char**>(alloca(_argc * sizeof(char*)));
     236    breakv = static_cast<char**>(alloca(_argc / 2 * sizeof(char*)));
    224237    for (int i = 0; i < _argc; )
    225238    {
Note: See TracChangeset for help on using the changeset viewer.