Changeset 3375e2 in git for Singular/sdb.cc


Ignore:
Timestamp:
Jun 8, 1999, 2:38:46 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
Children:
20057b77cd71291095f0751bb45b61df65b7800f
Parents:
19fa535d96a6eb15ab729d392b489f69f9017f9a
Message:
*hannes: more error correction


git-svn-id: file:///usr/local/Singular/svn/trunk@3111 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/sdb.cc

    r19fa535 r3375e2  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: sdb.cc,v 1.6 1999-05-29 11:57:42 Singular Exp $ */
     4/* $Id: sdb.cc,v 1.7 1999-06-08 12:38:46 Singular Exp $ */
    55/*
    66* ABSTRACT: Singular debugger
     
    5959    if (editor==NULL)
    6060      editor="vi";
     61    editor=mstrdup(editor);
     62
     63    // remove arguments...
     64    if (strchr(editor,' ')!=NULL)
     65    {
     66      char *p=strchr(editor,' ');
     67      *p='\0';
     68    }
    6169
    6270    if (pi->data.s.body==NULL)
     
    8593      execlp(editor,editor,filename,NULL);
    8694      Print("cannot exec %s\n",editor);
     95      exit(0);
    8796    }
    8897    else
     
    147156      fwrite(currLine,1,len,stdout);
    148157      Print("<<\nbreakpoint %d (press ? for list of commands)\n",bp);
    149       p=fe_fgets_stdin("!",gdb,80);
     158      p=fe_fgets_stdin(">>",gdb,80);
    150159      while (*p==' ') p++;
    151160      if (*p >' ')
Note: See TracChangeset for help on using the changeset viewer.