Line 49... |
Line 49... |
#include "gdbcomm.h"
|
#include "gdbcomm.h"
|
#include "debug_unit.h"
|
#include "debug_unit.h"
|
#include "coff.h"
|
#include "coff.h"
|
|
|
/* CVS revision number. */
|
/* CVS revision number. */
|
const char rcsrev[] = "$Revision: 1.62 $";
|
const char rcsrev[] = "$Revision: 1.63 $";
|
|
|
/* Continuos run versus single step tracing switch. */
|
/* Continuos run versus single step tracing switch. */
|
int cont_run;
|
int cont_run;
|
|
|
/* History of execution */
|
/* History of execution */
|
Line 180... |
Line 180... |
fprintf(stderr, "WARNING: Problems opening profile file. Profiling disabled. \n");
|
fprintf(stderr, "WARNING: Problems opening profile file. Profiling disabled. \n");
|
} else
|
} else
|
fprintf(runtime.sim.fprof, "+00000000 FFFFFFFF FFFFFFFF main\n");
|
fprintf(runtime.sim.fprof, "+00000000 FFFFFFFF FFFFFFFF main\n");
|
}
|
}
|
|
|
|
if (config.sim.mprofile) {
|
|
runtime.sim.fmprof = fopen(config.sim.mprof_fn, "wb+");
|
|
if(!runtime.sim.fmprof) {
|
|
config.sim.mprofile = 0;
|
|
fprintf(stderr, "WARNING: Problems opening memory profile file. Memory profiling disabled. \n");
|
|
}
|
|
}
|
|
|
if (config.sim.exe_log) {
|
if (config.sim.exe_log) {
|
runtime.sim.fexe_log = fopen(config.sim.exe_log_fn, "wt+");
|
runtime.sim.fexe_log = fopen(config.sim.exe_log_fn, "wt+");
|
if(!runtime.sim.fexe_log) {
|
if(!runtime.sim.fexe_log) {
|
config.sim.exe_log = 0;
|
config.sim.exe_log = 0;
|
printf("WARNING: Problems opening exe_log file. Execution logging disabled. \n");
|
printf("WARNING: Problems opening exe_log file. Execution logging disabled. \n");
|
Line 307... |
Line 315... |
if (config.sim.profile) {
|
if (config.sim.profile) {
|
extern int cycles;
|
extern int cycles;
|
fprintf(runtime.sim.fprof,"-%08X FFFFFFFF\n", cycles);
|
fprintf(runtime.sim.fprof,"-%08X FFFFFFFF\n", cycles);
|
fclose(runtime.sim.fprof);
|
fclose(runtime.sim.fprof);
|
}
|
}
|
|
|
|
if (config.sim.mprofile)
|
|
fclose(runtime.sim.fmprof);
|
|
|
if (config.sim.exe_log) fclose(runtime.sim.fexe_log);
|
if (config.sim.exe_log) fclose(runtime.sim.fexe_log);
|
if (config.vapi.enabled) vapi_done ();
|
if (config.vapi.enabled) vapi_done ();
|
done_memory_table ();
|
done_memory_table ();
|
exit(0);
|
exit(0);
|
}
|
}
|
Line 334... |
Line 346... |
printf(" -i enable interactive command prompt\n");
|
printf(" -i enable interactive command prompt\n");
|
printf(" -f or --file load script file [sim.cfg]\n");
|
printf(" -f or --file load script file [sim.cfg]\n");
|
printf(" --nosrv do not launch JTAG proxy server\n"); /* (CZ) */
|
printf(" --nosrv do not launch JTAG proxy server\n"); /* (CZ) */
|
printf(" --srv <n> launch JTAG proxy server on port <n>; [random]\n"); /* (CZ) */
|
printf(" --srv <n> launch JTAG proxy server on port <n>; [random]\n"); /* (CZ) */
|
printf(" --profile enable profiling\n");
|
printf(" --profile enable profiling\n");
|
|
printf(" --mprofile enable memory profiling\n");
|
exit(-1);
|
exit(-1);
|
}
|
}
|
|
|
#ifdef HAVE_LIBREADLINE
|
#ifdef HAVE_LIBREADLINE
|
initialize_readline (); /* Bind our completer. */
|
initialize_readline (); /* Bind our completer. */
|