git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@1137
4a8a32a2-be11-0410-ad9d-
d568d2c75423
unsigned int addr ;
context *ctxt;
int rv;
+ static int initial_break_flag = 0;
+
top:
addr = simGoTillBp (gaddr);
if not then we continue with the execution
of the program */
if (!rv) {
- fprintf(stdout, "Stopping at non-user breakpoint\n");
+ if (!initial_break_flag) {
+ initial_break_flag = 1; // kludge to stop only at first run
+ fprintf(stdout, "Stopping at entry. You can now list and set breakpoints\n");
+ }
+ else {
+ gaddr = -1;
+ goto top ;
+ }
// notes: kpb
// I took this out, after running "run" it would just keep re-running