From 9717d128629a2396b46865d6f1228a2da509c94d Mon Sep 17 00:00:00 2001 From: j8takagi Date: Tue, 23 Jun 2026 17:03:13 +0900 Subject: [PATCH] =?utf8?q?Mac=E3=81=A7=E5=8B=95=E4=BD=9C=E3=81=99=E3=82=8B?= =?utf8?q?=E3=82=88=E3=81=86=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/monitor.c | 6 ------ test/system/comet2monitor/break_help_2/0.txt | 3 ++- test/system/comet2monitor/break_help_2/cmd | 2 +- test/system/comet2monitor/dump_3/0.txt | 3 ++- test/system/comet2monitor/dump_3/cmd | 2 +- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/monitor.c b/src/monitor.c index b9ed2fa..8fd17b1 100644 --- a/src/monitor.c +++ b/src/monitor.c @@ -1,6 +1,5 @@ #include #include -#include #include "monitor.h" #include "disassemble.h" @@ -376,11 +375,6 @@ int monquit() free_cmdtable(HASH_CMDTYPE); free_cmdtable(HASH_CODE); - /* Readline 関連のメモリを明示的に解放 */ - rl_clear_history(); - rl_cleanup_after_signal(); - rl_free_line_state(); - if(cerr->num > 0) { stat = 1; } diff --git a/test/system/comet2monitor/break_help_2/0.txt b/test/system/comet2monitor/break_help_2/0.txt index 8f1d3af..8754ab7 100644 --- a/test/system/comet2monitor/break_help_2/0.txt +++ b/test/system/comet2monitor/break_help_2/0.txt @@ -1,8 +1,9 @@ COMET II machine code monitor. Type ? for help. -Info: arguments '1' are ignored. > b ? 1 breakpoint manipulate: b[reak] a[dd]
b[reak] d[el]
b[reak] l[ist] b[reak] r[eset] + +Info: arguments '1' are ignored. diff --git a/test/system/comet2monitor/break_help_2/cmd b/test/system/comet2monitor/break_help_2/cmd index bd44f3a..aebf4d2 100755 --- a/test/system/comet2monitor/break_help_2/cmd +++ b/test/system/comet2monitor/break_help_2/cmd @@ -1 +1 @@ -../../../../comet2monitor &1 | sed '/^(comet2 monitor) /d' +../../../../comet2monitor &1 | sed -e '/^(comet2 monitor) /d; /^Info/H; /^Info/d; $G' diff --git a/test/system/comet2monitor/dump_3/0.txt b/test/system/comet2monitor/dump_3/0.txt index 02be83f..f0b74a7 100644 --- a/test/system/comet2monitor/dump_3/0.txt +++ b/test/system/comet2monitor/dump_3/0.txt @@ -1,9 +1,10 @@ COMET II machine code monitor. Type ? for help. > l sum_10.o -Info: arguments '#40' are ignored. > d 0 #20 #40 #0000: adr : 0000 0001 0002 0003 0004 0005 0006 0007 0008 0009 000A 000B 000C 000D 000E 000F ------------------------------------------------------------------------------------- #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 #0000: 0020: 0000 + +Info: arguments '#40' are ignored. diff --git a/test/system/comet2monitor/dump_3/cmd b/test/system/comet2monitor/dump_3/cmd index 21cef75..bcad326 100755 --- a/test/system/comet2monitor/dump_3/cmd +++ b/test/system/comet2monitor/dump_3/cmd @@ -1 +1 @@ -../../../../comet2monitor &1 | sed '/^(comet2 monitor) /d' +../../../../comet2monitor &1 | sed -e '/^(comet2 monitor) /d; /^Info/H; /^Info/d; $G' -- 2.47.3