From dfade80c2fe2185948e3bb5626e9b1aa92d5bf11 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Wed, 27 Feb 2019 16:58:38 +0900 Subject: [PATCH] =?utf8?q?MacOSX=E3=81=AE=E5=8B=95=E4=BD=9C=E3=81=AB?= =?utf8?q?=E5=90=88=E3=82=8F=E3=81=9B=E3=81=9F=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/monitor.c | 2 +- src/struct.c | 2 +- test/system/comet2_smoke/direct/create_a | Bin 16888 -> 16840 bytes test/system/comet2_smoke/direct/create_a.c | 1 - test/system/comet2monitor/break_help/0.txt | 2 +- test/system/comet2monitor/break_help_2/0.txt | 3 ++- test/system/comet2monitor/dump_0/0.txt | 2 +- test/system/comet2monitor/dump_1/0.txt | 2 +- test/system/comet2monitor/dump_2/0.txt | 2 +- test/system/comet2monitor/dump_3/0.txt | 3 ++- test/system/comet2monitor/dump_plus/0.txt | 2 +- test/system/comet2monitor/help/0.txt | 2 +- test/system/comet2monitor/load/0.txt | 2 +- test/system/comet2monitor/revert_hello/0.txt | 2 +- 14 files changed, 14 insertions(+), 13 deletions(-) diff --git a/src/monitor.c b/src/monitor.c index 4fc26e7..d923771 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -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", 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); diff --git a/src/struct.c b/src/struct.c index bb482f8..1058567 100644 --- a/src/struct.c +++ b/src/struct.c @@ -70,7 +70,7 @@ enum { /** * ハッシュ表 */ -static CMDTAB *cmdtab[HASH_MAX][CMDTABSIZE] = {NULL}; +static CMDTAB *cmdtab[HASH_MAX][CMDTABSIZE] = {{NULL}}; /** * 命令の名前とタイプからハッシュ値を生成する diff --git a/test/system/comet2_smoke/direct/create_a b/test/system/comet2_smoke/direct/create_a index 5cf95fd78196edd4a6e18dc8e2e780f0f9919294..d3bf02304bf822861f666f369abce167fdccf32a 100755 GIT binary patch delta 1457 zcmZ8hUuauZ7(eHxH_2_A_TI$oCfb?X4!h0L+@x8Wbu>$&mR(`Pl`Yta+6LE6VMxnb z=!0V^nPTmNNk5cLQ0kK}gR$kMdr(?8v;!X+K^EUuu+V{n)=lk$di~D*Q@S3w=XZX; z@6Y-7ox4?}%SBoaNM(^2Eo}n%xN`6t;i}VQS1Z4&jcc4q);RFev%;7~r>fKR0)3`4 zH5I9?EWYM?{j=P1bK<+r$B(}Nx8pFq0MP~+#vB^`)EKQeM(9^Kx&q%fybb&KZs{$| z%VwW^_C0|Rj+}!$FAo$XbGnVBiEa}}#L`cupVn<&PnkMfI)!g}IoMzdM!&wp%EKeH zHtw))?XWh%UZ+esh&xs4gi+_IYMbv}VNNW=ytpUZiM!WIo*R@wvW7Wye}_uQlQPl@ z4zv>g34^|^3BNYW{};ybhl>+}{-8BfU{l_)5dHIpfBX$-lG^Ama6o$g#l0wz$yin^ zCU0RV(Pq{rJlbrM<-rD;6Bv^w#jY0SGVnl~#jg}s;7=*rxxl8;W>0LL z(PGUn96&O`uRr=%*YDjq8*U9?39+s424a=AZ@=;$^@!e|{?CXxeX17Y~&>kM98cc^nbOF8&r)U{g z!y(CS6{L%0$EJa#rf2{L)et2xuHMH2GTTYWMebvUXjDc^KI(V4NdQqsjj=}JhD!7p z=3PS8Lh7&?W&SsN{Eh$_g4Ld3x(Jz=9Ne&8hMk!mBu6|X0^>264#7-JrG@J4n2XXC zSUTi`_8wmknZwFZh)lG!9cSVZ)J4>XcIg?2#zRuw`?Pl!YKLSx&ib~p6}da(m#DKj zFOlmwk~o>zPr=T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^1F6Q{E b[reak] l[ist] b[reak] r[eset] -(comet2 monitor) \ No newline at end of file +(comet2 monitor) diff --git a/test/system/comet2monitor/break_help_2/0.txt b/test/system/comet2monitor/break_help_2/0.txt index a4c6974..61ebc52 100644 --- a/test/system/comet2monitor/break_help_2/0.txt +++ b/test/system/comet2monitor/break_help_2/0.txt @@ -5,4 +5,5 @@ breakpoint manipulate: b[reak] d[el]
b[reak] l[ist] b[reak] r[eset] -(comet2 monitor) 1: ignored. +(comet2 monitor) +1: ignored. diff --git a/test/system/comet2monitor/dump_0/0.txt b/test/system/comet2monitor/dump_0/0.txt index 0e8b09b..8bdd4d6 100644 --- a/test/system/comet2monitor/dump_0/0.txt +++ b/test/system/comet2monitor/dump_0/0.txt @@ -7,4 +7,4 @@ COMET II machine code monitor. Type ? for help. #0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000 #0000: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 #0000: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 -(comet2 monitor) \ No newline at end of file +(comet2 monitor) diff --git a/test/system/comet2monitor/dump_1/0.txt b/test/system/comet2monitor/dump_1/0.txt index dcc5141..f5ac5ab 100644 --- a/test/system/comet2monitor/dump_1/0.txt +++ b/test/system/comet2monitor/dump_1/0.txt @@ -7,4 +7,4 @@ COMET II machine code monitor. Type ? for help. #0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000 #0000: 0020: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 #0000: 0030: 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 -(comet2 monitor) \ No newline at end of file +(comet2 monitor) diff --git a/test/system/comet2monitor/dump_2/0.txt b/test/system/comet2monitor/dump_2/0.txt index f805a00..bc88ef4 100644 --- a/test/system/comet2monitor/dump_2/0.txt +++ b/test/system/comet2monitor/dump_2/0.txt @@ -5,4 +5,4 @@ COMET II machine code monitor. Type ? for help. ------------------------------------------------------------------------------------- #0000: 0000: 7001 0000 7002 0000 3622 1010 0015 2621 2210 0017 4110 0016 6500 0010 6400 0007 #0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000 -(comet2 monitor) \ No newline at end of file +(comet2 monitor) diff --git a/test/system/comet2monitor/dump_3/0.txt b/test/system/comet2monitor/dump_3/0.txt index 4e9d74a..ee76e21 100644 --- a/test/system/comet2monitor/dump_3/0.txt +++ b/test/system/comet2monitor/dump_3/0.txt @@ -5,4 +5,5 @@ COMET II machine code monitor. Type ? for help. ------------------------------------------------------------------------------------- #0000: 0000: 7001 0000 7002 0000 3622 1010 0015 2621 2210 0017 4110 0016 6500 0010 6400 0007 #0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000 -(comet2 monitor) #40: ignored. +(comet2 monitor) +#40: ignored. diff --git a/test/system/comet2monitor/dump_plus/0.txt b/test/system/comet2monitor/dump_plus/0.txt index 5a86a4c..79bdbf8 100644 --- a/test/system/comet2monitor/dump_plus/0.txt +++ b/test/system/comet2monitor/dump_plus/0.txt @@ -5,4 +5,4 @@ COMET II machine code monitor. Type ? for help. ------------------------------------------------------------------------------------- #0000: 0000: 7001 0000 7002 0000 3622 1010 0015 2621 2210 0017 4110 0016 6500 0010 6400 0007 #0000: 0010: 1120 0018 7120 7110 8100 0001 000A 0001 0000 0000 0000 0000 0000 0000 0000 0000 -(comet2 monitor) \ No newline at end of file +(comet2 monitor) diff --git a/test/system/comet2monitor/help/0.txt b/test/system/comet2monitor/help/0.txt index cae706c..ed17f9f 100644 --- a/test/system/comet2monitor/help/0.txt +++ b/test/system/comet2monitor/help/0.txt @@ -12,4 +12,4 @@ s[ave] -- Save object from the memory to a file. `s[ave] [