projects
/
YACASL2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
READMEのCASL II仕様書へのリンクを修正
[YACASL2.git]
/
src
/
monitor.c
diff --git
a/src/monitor.c
b/src/monitor.c
index
4fc26e7
..
8ad69ce
100644
(file)
--- a/
src/monitor.c
+++ b/
src/monitor.c
@@
-88,11
+88,11
@@
bool delbps(WORD adr)
void listbps()
{
void listbps()
{
- int
i,
cnt = 0;
+ int cnt = 0;
BPSLIST *p = NULL;
fprintf(stdout, "List of breakpoints\n");
BPSLIST *p = NULL;
fprintf(stdout, "List of breakpoints\n");
- for(i = 0; i < BPSTABSIZE; i++) {
+ for(i
nt i
= 0; i < BPSTABSIZE; i++) {
for(p = bps[i]; p != NULL; p = p->next) {
fprintf(stdout, "#%04X\n", p->adr);
cnt++;
for(p = bps[i]; p != NULL; p = p->next) {
fprintf(stdout, "#%04X\n", p->adr);
cnt++;
@@
-396,11
+396,11
@@
void monitor()
fprintf(stdout, "%s ", monitor_prompt);
buf = malloc_chk(MONINSIZE + 1, "monitor.buf");
fgets(buf, MONINSIZE, stdin);
fprintf(stdout, "%s ", monitor_prompt);
buf = malloc_chk(MONINSIZE + 1, "monitor.buf");
fgets(buf, MONINSIZE, stdin);
- fprintf(stdout, "%s", buf);
if(!buf[0]) {
cmdtype = MONQUIT;
}
strip_end(buf); /* 文字列末尾の改行と空白を削除 */
if(!buf[0]) {
cmdtype = MONQUIT;
}
strip_end(buf); /* 文字列末尾の改行と空白を削除 */
+ fprintf(stdout, "%s\n", buf);
if((moncmdl = monlinetok(buf)) != NULL) {
cmdtype = monitorcmd(moncmdl->cmd, moncmdl->args);
free_moncmdline(moncmdl);
if((moncmdl = monlinetok(buf)) != NULL) {
cmdtype = monitorcmd(moncmdl->cmd, moncmdl->args);
free_moncmdline(moncmdl);