Rename internal _debugger_go() to avoid name collision with main debugger_go()

This commit is contained in:
Aaron Culliney 2019-10-06 16:28:44 -07:00
parent 82813b3ac8
commit 4e27c1a322
3 changed files with 23 additions and 23 deletions

View File

@ -1098,7 +1098,7 @@ extern void set_halt_65c02(void);
extern void clear_halt_65c02(void); extern void clear_halt_65c02(void);
extern void clear_halt_opcode(uint8_t opcode); extern void clear_halt_opcode(uint8_t opcode);
extern void show_opcode_breakpts(void); extern void show_opcode_breakpts(void);
extern int debugger_go(stepping_struct_s s); extern int _debugger_go(stepping_struct_s s);
extern void fb_sha1(void); extern void fb_sha1(void);
/* /*
@ -1890,7 +1890,7 @@ YY_RULE_SETUP
s.step_type = NEXTING; s.step_type = NEXTING;
} }
debugger_go(s); _debugger_go(s);
return STEP; return STEP;
} }
YY_BREAK YY_BREAK
@ -1914,7 +1914,7 @@ YY_RULE_SETUP
s.step_type = NEXTING; s.step_type = NEXTING;
} }
debugger_go(s); _debugger_go(s);
return STEP; return STEP;
} }
YY_BREAK YY_BREAK
@ -1929,7 +1929,7 @@ YY_RULE_SETUP
.step_frame = 1 .step_frame = 1
}; };
debugger_go(s); _debugger_go(s);
return FINISH; return FINISH;
} }
YY_BREAK YY_BREAK
@ -1976,7 +1976,7 @@ YY_RULE_SETUP
.step_pc = run_args.cpu65_pc + delta .step_pc = run_args.cpu65_pc + delta
}; };
debugger_go(s); _debugger_go(s);
return UNTIL; return UNTIL;
} }
YY_BREAK YY_BREAK
@ -1995,7 +1995,7 @@ YY_RULE_SETUP
.step_type = GOING .step_type = GOING
}; };
debugger_go(s); _debugger_go(s);
return GO; return GO;
} }
YY_BREAK YY_BREAK
@ -2008,7 +2008,7 @@ YY_RULE_SETUP
.step_type = GOING .step_type = GOING
}; };
debugger_go(s); _debugger_go(s);
return GO; return GO;
} }
YY_BREAK YY_BREAK
@ -2307,7 +2307,7 @@ YY_RULE_SETUP
.step_text = buf .step_text = buf
}; };
debugger_go(s); _debugger_go(s);
return TYPE; return TYPE;
} }
@ -2341,7 +2341,7 @@ YY_RULE_SETUP
.step_text = buf .step_text = buf
}; };
ch = debugger_go(s); ch = _debugger_go(s);
if (ch != -1) { if (ch != -1) {
break; break;
} }
@ -2352,7 +2352,7 @@ YY_RULE_SETUP
stepping_struct_s s = { stepping_struct_s s = {
.step_type = GOING, .step_type = GOING,
}; };
debugger_go(s); _debugger_go(s);
} }
return LOAD; return LOAD;

View File

@ -58,7 +58,7 @@ extern void set_halt_65c02(void);
extern void clear_halt_65c02(void); extern void clear_halt_65c02(void);
extern void clear_halt_opcode(uint8_t opcode); extern void clear_halt_opcode(uint8_t opcode);
extern void show_opcode_breakpts(void); extern void show_opcode_breakpts(void);
extern int debugger_go(stepping_struct_s s); extern int _debugger_go(stepping_struct_s s);
extern void fb_sha1(void); extern void fb_sha1(void);
/* /*
@ -483,7 +483,7 @@ ADDRS [0-9a-fA-F]+
s.step_type = NEXTING; s.step_type = NEXTING;
} }
debugger_go(s); _debugger_go(s);
return STEP; return STEP;
} }
@ -503,7 +503,7 @@ ADDRS [0-9a-fA-F]+
s.step_type = NEXTING; s.step_type = NEXTING;
} }
debugger_go(s); _debugger_go(s);
return STEP; return STEP;
} }
@ -514,7 +514,7 @@ ADDRS [0-9a-fA-F]+
.step_frame = 1 .step_frame = 1
}; };
debugger_go(s); _debugger_go(s);
return FINISH; return FINISH;
} }
@ -557,7 +557,7 @@ ADDRS [0-9a-fA-F]+
.step_pc = run_args.cpu65_pc + delta .step_pc = run_args.cpu65_pc + delta
}; };
debugger_go(s); _debugger_go(s);
return UNTIL; return UNTIL;
} }
@ -572,7 +572,7 @@ ADDRS [0-9a-fA-F]+
.step_type = GOING .step_type = GOING
}; };
debugger_go(s); _debugger_go(s);
return GO; return GO;
} }
@ -581,7 +581,7 @@ ADDRS [0-9a-fA-F]+
.step_type = GOING .step_type = GOING
}; };
debugger_go(s); _debugger_go(s);
return GO; return GO;
} }
@ -806,7 +806,7 @@ ADDRS [0-9a-fA-F]+
.step_text = buf .step_text = buf
}; };
debugger_go(s); _debugger_go(s);
return TYPE; return TYPE;
} }
@ -836,7 +836,7 @@ ADDRS [0-9a-fA-F]+
.step_text = buf .step_text = buf
}; };
ch = debugger_go(s); ch = _debugger_go(s);
if (ch != -1) { if (ch != -1) {
break; break;
} }
@ -847,7 +847,7 @@ ADDRS [0-9a-fA-F]+
stepping_struct_s s = { stepping_struct_s s = {
.step_type = GOING, .step_type = GOING,
}; };
debugger_go(s); _debugger_go(s);
} }
return LOAD; return LOAD;

View File

@ -1263,9 +1263,9 @@ bool debugger_shouldBreak(void) {
} }
/* ------------------------------------------------------------------------- /* -------------------------------------------------------------------------
debugger_go () - step into or step over commands _debugger_go () - step into or step over commands
------------------------------------------------------------------------- */ ------------------------------------------------------------------------- */
int debugger_go(stepping_struct_s s) { int _debugger_go(stepping_struct_s s) {
memcpy(&stepping_struct, &s, sizeof(s)); memcpy(&stepping_struct, &s, sizeof(s));
int ch = begin_cpu_stepping(); int ch = begin_cpu_stepping();
@ -1521,7 +1521,7 @@ void debugger_go(void) {
num_buffer_lines = 0; num_buffer_lines = 0;
is_debugging = true; is_debugging = true;
debugger_go(s); _debugger_go(s);
FREE(buf); FREE(buf);