#include "spice.h"
#include "ftedefs.h"
#include "ftedebug.h"
#include "spfteext.h"
#include "scedio.h"
Go to the source code of this file.
Definition at line 373 of file breakp.c.
388 fprintf(
cp_err,
"Error: no debugs in effect\n");
393 if (*buf !=
'y' && *buf !=
'Y' && *buf !=
'\n')
409 for (dt =
dbtrace; dt; dt = d) {
420 for (dt =
dbsave; dt; dt = d) {
442 for (dt =
dbstop; dt; dt = d) {
452 for (s = wl->
wl_word; *s; s++) {
454 fprintf(
cp_err,
"Error: %s isn't a number.\n",
464 for (dt =
NULL,d =
dbtrace; d; dt = d,d = d->db_next) {
465 if (d->db_number != i)
continue;
473 for (dt =
NULL,d =
dbiplot; d; dt = d,d = d->db_next) {
474 if (d->db_number != i)
continue;
482 for (dt =
NULL,d =
dbsave; d; dt = d,d = d->db_next) {
483 if (d->db_number != i)
continue;
491 for (dt =
NULL,d =
dbstop; d; dt = d,d = d->db_next) {
492 if (d->db_number != i)
continue;
static char buf[MAXPROMPT]
static struct dbcomm * dbstop
char * SCEDfgets(char *s, int n, FILE *fp, char *prompt)
static struct dbcomm * dbtrace
static struct dbcomm * dbsave
struct wordlist * wl_next
void dbfree(struct dbcomm *db)
Definition at line 172 of file breakp.c.
189 for ( ; wl; wl = wl->
wl_next) {
193 if (
eq(s,
"plot") ||
eq(s,
"graf")) {
197 if (currentdb ==
NULL) {
struct wordlist * wl_next
Definition at line 228 of file breakp.c.
246 fprintf(
cp_err,
"Already saving %s, ignored.\n",
static struct dbcomm * dbsave
struct wordlist * wl_next
void dbfree(struct dbcomm *db)
Definition at line 51 of file breakp.c.
91 for (i = 0,wx = wl; wx; wx = wx->
wl_next) {
127 fprintf(
cp_err,
"Syntax error.\n");
static char buf[MAXPROMPT]
static struct dbcomm * dbstop
struct wordlist * wl_next
Definition at line 285 of file breakp.c.
static struct dbcomm * dbstop
static struct dbcomm * dbtrace
static struct dbcomm * dbsave
Definition at line 135 of file breakp.c.
153 fprintf(
cp_err,
"Already tracing %s, ignored.\n",
static struct dbcomm * dbtrace
struct wordlist * wl_next
void dbfree(struct dbcomm *db)
void dbfree |
( |
struct dbcomm * |
db | ) |
|
Definition at line 356 of file breakp.c.
362 for (dd = db; dd; dd = dn) {
bool ft_bpcheck |
( |
struct plot * |
runplot, |
|
|
int |
iteration |
|
) |
| |
Definition at line 510 of file breakp.c.
530 for (dt = d; dt; dt = dt->
db_also) {
545 (void) putc(
'\n',
cp_err);
554 fprintf(
cp_err,
"Stopped after %d steps.\n",
steps);
static bool print_trace()
struct wordlist * wl_prev
static struct dbcomm * dbstop
static struct dbcomm * dbtrace
struct wordlist * wl_next
int ft_getSaves |
( |
char *** |
savesp | ) |
|
Definition at line 648 of file breakp.c.
653 int count = 0, icount = 0, i = 0;
669 for (dd = d; dd; dd = dd->
db_also) {
678 for (dd = d; dd; dd = dd->
db_also) {
695 *savesp = array = (
char **)
tmalloc(
sizeof(
char *) * icount);
698 array[i++] =
copy(
"all");
static struct dbcomm * dbstop
static struct dbcomm * dbtrace
static struct dbcomm * dbsave
Definition at line 789 of file breakp.c.
804 for (wl = wl0; wl; wl = wl->
wl_next) {
struct wordlist * wl_next
static bool print_trace |
( |
| ) |
|
|
static |
Definition at line 564 of file breakp.c.
574 char *
s, *
t,
buf[128];
576 struct dvlist *dvl, *dv, dv0;
614 for (dv = dvl; dv; dv = dvl) {
struct dvec * ft_evaluate()
static char buf[MAXPROMPT]
struct pnode * ft_getpnames()
struct wordlist * wl_prev
struct wordlist * wl_next
static void printcond |
( |
| ) |
|
|
static |
static void printcond |
( |
struct dbcomm * |
d, |
|
|
FILE * |
fp |
|
) |
| |
|
static |
Definition at line 762 of file breakp.c.
770 for (dt = d; dt; dt = dt->
db_also) {
778 (
void)fputs(buf, fp);
static char buf[MAXPROMPT]
static void printdbg |
( |
struct dbcomm * |
d | ) |
|
|
static |
Definition at line 303 of file breakp.c.
308 char *all =
"all",*trace =
"trace",*
iplot =
"iplot",*save =
"save";
348 "com_sttus: Internal Error: bad db %d...\n",d->
db_type);
static char* spec |
( |
char ** |
str | ) |
|
|
static |
Definition at line 732 of file breakp.c.
737 char *
t, *
tt, *tok,
c;
741 t = strchr(*str,
'@');
744 while (*tt && (isalpha(*tt) || isdigit(*tt) || *tt ==
'_')) tt++;
745 if (*tt && *tt ==
'[') {
747 while (*tt && *tt !=
']') tt++;
static void unhackplot |
( |
| ) |
|
|
static |
static void unhackplot |
( |
int |
length | ) |
|
|
static |
Definition at line 817 of file breakp.c.
827 for (wl = wl0; wl; wl = wl->
wl_next) {
struct wordlist * wl_next