root/doc_inner/gnu_global/S/3421.html

/* [<][>][^][v][top][bottom][index][help] */
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/monitor.c</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.6.14' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/3528.html'>src</a>/monitor.c</h2>
<em class='comment'>/* [&lt;][&gt;]<a href='#L17'>[^]</a><a href='#L397'>[v]</a>[top]<a href='#BOTTOM'>[bottom]</a><a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
<hr />
<h2 class='header'>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L17' title='Defined at 17.'>adrhash</a></li>
<li><a href='#L29' title='Defined at 29.'>getbps</a></li>
<li><a href='#L41' title='Defined at 41.'>addbps</a></li>
<li><a href='#L61' title='Defined at 61.'>delbps</a></li>
<li><a href='#L93' title='Defined at 93.'>listbps</a></li>
<li><a href='#L110' title='Defined at 110.'>freebpslist</a></li>
<li><a href='#L120' title='Defined at 120.'>freebps</a></li>
<li><a href='#L128' title='Defined at 128.'>monargstok</a></li>
<li><a href='#L150' title='Defined at 150.'>monlinetok</a></li>
<li><a href='#L186' title='Defined at 186.'>stracmp</a></li>
<li><a href='#L200' title='Defined at 200.'>warn_ignore_arg</a></li>
<li><a href='#L213' title='Defined at 213.'>mon_break</a></li>
<li><a href='#L260' title='Defined at 260.'>mon_dump</a></li>
<li><a href='#L290' title='Defined at 290.'>monitorcmd</a></li>
<li><a href='#L365' title='Defined at 365.'>free_moncmdline</a></li>
<li><a href='#L383' title='Defined at 383.'>monquit</a></li>
<li><a href='#L397' title='Defined at 397.'>monitor</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#include</em> &lt;stdio.h&gt;
<a id='L2' name='L2'></a>   2 <em class='sharp'>#include</em> &lt;readline/readline.h&gt;
<a id='L3' name='L3'></a>   3 <em class='sharp'>#include</em> &lt;readline/history.h&gt;
<a id='L4' name='L4'></a>   4 <em class='sharp'>#include</em> "<a href='3006.html'>monitor.h</a>"
<a id='L5' name='L5'></a>   5 <em class='sharp'>#include</em> "<a href='3008.html'>disassemble.h</a>"
<a id='L6' name='L6'></a>   6 
<a id='L7' name='L7'></a>   7 <em class='comment'>/**</em>
<a id='L8' name='L8'></a>   8 <em class='comment'> * @brief ブレークポイント表</em>
<a id='L9' name='L9'></a>   9 <em class='comment'> */</em>
<a id='L10' name='L10'></a>  10 <strong class='reserved'>static</strong> <a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../S/3006.html#L46' title='Defined at 46 in include/monitor.h.'>BPSTABSIZE</a>];
<a id='L11' name='L11'></a>  11 
<a id='L12' name='L12'></a>  12 <em class='comment'>/**</em>
<a id='L13' name='L13'></a>  13 <em class='comment'> * @brief comet2monitorのプロンプト</em>
<a id='L14' name='L14'></a>  14 <em class='comment'> */</em>
<a id='L15' name='L15'></a>  15 <strong class='reserved'>static</strong> <strong class='reserved'>char</strong> *<a href='../Y/154.html' title='Multiple used in 2 places.'>monitor_prompt</a> = "(comet2 monitor) ";
<a id='L16' name='L16'></a>  16 
<a id='L17' name='L17'></a>  17 <strong class='reserved'>unsigned</strong> <a href='../R/100.html' title='Multiple referred from 5 places.'>adrhash</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>)
<a id='L18' name='L18'></a>  18 <em class='brace'>{</em>
<a id='L19' name='L19'></a>  19     <a href='../S/3012.html#L21' title='Defined at 21 in include/hash.h.'>HKEY</a> *<a href='../Y/124.html' title='Multiple used in 11 places.'>key</a>[1];
<a id='L20' name='L20'></a>  20     <strong class='reserved'>unsigned</strong> <a href='../Y/116.html' title='Multiple used in 19 places.'>h</a>;
<a id='L21' name='L21'></a>  21     <a href='../Y/124.html' title='Multiple used in 11 places.'>key</a>[0] = <a href='../S/3439.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/3012.html#L21' title='Defined at 21 in include/hash.h.'>HKEY</a>), "adrhash.key");
<a id='L22' name='L22'></a>  22     <a href='../Y/124.html' title='Multiple used in 11 places.'>key</a>[0]-&gt;<a href='../Y/238.html' title='Multiple used in 26 places.'>type</a> = <a href='../S/3012.html#L9' title='Defined at 9 in include/hash.h.'>INT</a>;
<a id='L23' name='L23'></a>  23     <a href='../Y/124.html' title='Multiple used in 11 places.'>key</a>[0]-&gt;<a href='../Y/240.html' title='Multiple used in 35 places.'>val</a>.<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>;
<a id='L24' name='L24'></a>  24     <a href='../Y/116.html' title='Multiple used in 19 places.'>h</a> = <a href='../S/3438.html#L3' title='Defined at 3 in src/hash.c.'>hash</a>(1, <a href='../Y/124.html' title='Multiple used in 11 places.'>key</a>, <a href='../S/3006.html#L46' title='Defined at 46 in include/monitor.h.'>BPSTABSIZE</a>);
<a id='L25' name='L25'></a>  25     <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/124.html' title='Multiple used in 11 places.'>key</a>[0]);
<a id='L26' name='L26'></a>  26     <strong class='reserved'>return</strong> <a href='../Y/116.html' title='Multiple used in 19 places.'>h</a>;
<a id='L27' name='L27'></a>  27 <em class='brace'>}</em>
<a id='L28' name='L28'></a>  28 
<a id='L29' name='L29'></a>  29 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../R/158.html' title='Multiple referred from 3 places.'>getbps</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>)
<a id='L30' name='L30'></a>  30 <em class='brace'>{</em>
<a id='L31' name='L31'></a>  31     <a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L32' name='L32'></a>  32 
<a id='L33' name='L33'></a>  33     <strong class='reserved'>for</strong>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../S/3421.html#L17' title='Defined at 17 in src/monitor.c.'>adrhash</a>(<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>)]; <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>; <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a>) <em class='brace'>{</em>
<a id='L34' name='L34'></a>  34         <strong class='reserved'>if</strong>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a> == <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>) <em class='brace'>{</em>
<a id='L35' name='L35'></a>  35             <strong class='reserved'>return</strong> <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L36' name='L36'></a>  36         <em class='brace'>}</em>
<a id='L37' name='L37'></a>  37     <em class='brace'>}</em>
<a id='L38' name='L38'></a>  38     <strong class='reserved'>return</strong> <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L39' name='L39'></a>  39 <em class='brace'>}</em>
<a id='L40' name='L40'></a>  40 
<a id='L41' name='L41'></a>  41 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../R/86.html' title='Multiple referred from 2 places.'>addbps</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>)
<a id='L42' name='L42'></a>  42 <em class='brace'>{</em>
<a id='L43' name='L43'></a>  43     <a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L44' name='L44'></a>  44     <strong class='reserved'>unsigned</strong> <a href='../Y/116.html' title='Multiple used in 19 places.'>h</a> = 0;
<a id='L45' name='L45'></a>  45 
<a id='L46' name='L46'></a>  46     <em class='comment'>/* 登録されたラベルを検索。すでに登録されている場合は終了 */</em>
<a id='L47' name='L47'></a>  47     <strong class='reserved'>if</strong>(<a href='../S/3421.html#L29' title='Defined at 29 in src/monitor.c.'>getbps</a>(<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>) == <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>) <em class='brace'>{</em>
<a id='L48' name='L48'></a>  48         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/205.html' title='Multiple used in 29 places.'>stderr</a>, "%04X: Breakpoint is already defined.\n", <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>);
<a id='L49' name='L49'></a>  49         <strong class='reserved'>return</strong> <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L50' name='L50'></a>  50     <em class='brace'>}</em>
<a id='L51' name='L51'></a>  51     <em class='comment'>/* メモリを確保 */</em>
<a id='L52' name='L52'></a>  52     <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../S/3439.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a>), "bps.next");
<a id='L53' name='L53'></a>  53     <em class='comment'>/* アドレスを設定 */</em>
<a id='L54' name='L54'></a>  54     <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a> = <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>;
<a id='L55' name='L55'></a>  55     <em class='comment'>/* ハッシュ表へ追加 */</em>
<a id='L56' name='L56'></a>  56     <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a> = <a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/116.html' title='Multiple used in 19 places.'>h</a> = <a href='../S/3421.html#L17' title='Defined at 17 in src/monitor.c.'>adrhash</a>(<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>)];
<a id='L57' name='L57'></a>  57     <a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/116.html' title='Multiple used in 19 places.'>h</a>] = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>;
<a id='L58' name='L58'></a>  58     <strong class='reserved'>return</strong> <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L59' name='L59'></a>  59 <em class='brace'>}</em>
<a id='L60' name='L60'></a>  60 
<a id='L61' name='L61'></a>  61 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../R/134.html' title='Multiple referred from 2 places.'>delbps</a>(<a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>)
<a id='L62' name='L62'></a>  62 <em class='brace'>{</em>
<a id='L63' name='L63'></a>  63     <a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L64' name='L64'></a>  64     <a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/186.html' title='Multiple used in 17 places.'>q</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L65' name='L65'></a>  65     <strong class='reserved'>unsigned</strong> <a href='../Y/116.html' title='Multiple used in 19 places.'>h</a> = 0;
<a id='L66' name='L66'></a>  66     <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../Y/193.html' title='Multiple used in 4 places.'>res</a> = <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L67' name='L67'></a>  67 
<a id='L68' name='L68'></a>  68     <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/116.html' title='Multiple used in 19 places.'>h</a> = <a href='../S/3421.html#L17' title='Defined at 17 in src/monitor.c.'>adrhash</a>(<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>)];
<a id='L69' name='L69'></a>  69     <strong class='reserved'>if</strong>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L70' name='L70'></a>  70         <strong class='reserved'>if</strong>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a> == <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>) <em class='brace'>{</em>
<a id='L71' name='L71'></a>  71             <strong class='reserved'>if</strong>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a> == <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L72' name='L72'></a>  72                 <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/116.html' title='Multiple used in 19 places.'>h</a>]);
<a id='L73' name='L73'></a>  73             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L74' name='L74'></a>  74                 <a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/116.html' title='Multiple used in 19 places.'>h</a>] = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a>;
<a id='L75' name='L75'></a>  75                 <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>);
<a id='L76' name='L76'></a>  76             <em class='brace'>}</em>
<a id='L77' name='L77'></a>  77             <a href='../Y/193.html' title='Multiple used in 4 places.'>res</a> = <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L78' name='L78'></a>  78         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L79' name='L79'></a>  79             <strong class='reserved'>for</strong>(; <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>; <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a>) <em class='brace'>{</em>
<a id='L80' name='L80'></a>  80                 <a href='../Y/186.html' title='Multiple used in 17 places.'>q</a> = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a>;
<a id='L81' name='L81'></a>  81                 <strong class='reserved'>if</strong>(<a href='../Y/186.html' title='Multiple used in 17 places.'>q</a>-&gt;<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a> == <a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>) <em class='brace'>{</em>
<a id='L82' name='L82'></a>  82                     <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a> = <a href='../Y/186.html' title='Multiple used in 17 places.'>q</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a>;
<a id='L83' name='L83'></a>  83                     <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/186.html' title='Multiple used in 17 places.'>q</a>);
<a id='L84' name='L84'></a>  84                     <a href='../Y/193.html' title='Multiple used in 4 places.'>res</a> = <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L85' name='L85'></a>  85                     <strong class='reserved'>break</strong>;
<a id='L86' name='L86'></a>  86                 <em class='brace'>}</em>
<a id='L87' name='L87'></a>  87             <em class='brace'>}</em>
<a id='L88' name='L88'></a>  88         <em class='brace'>}</em>
<a id='L89' name='L89'></a>  89     <em class='brace'>}</em>
<a id='L90' name='L90'></a>  90     <strong class='reserved'>return</strong> <a href='../Y/193.html' title='Multiple used in 4 places.'>res</a>;
<a id='L91' name='L91'></a>  91 <em class='brace'>}</em>
<a id='L92' name='L92'></a>  92 
<a id='L93' name='L93'></a>  93 <strong class='reserved'>void</strong> <a href='../S/3421.html#L219' title='Referred from 219 in src/monitor.c.'>listbps</a>()
<a id='L94' name='L94'></a>  94 <em class='brace'>{</em>
<a id='L95' name='L95'></a>  95     <strong class='reserved'>int</strong> <a href='../Y/69.html' title='Multiple used in 30 places.'>cnt</a> = 0;
<a id='L96' name='L96'></a>  96     <a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L97' name='L97'></a>  97 
<a id='L98' name='L98'></a>  98     <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "List of breakpoints\n");
<a id='L99' name='L99'></a>  99     <strong class='reserved'>for</strong>(<strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = 0; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> &lt; <a href='../S/3006.html#L46' title='Defined at 46 in include/monitor.h.'>BPSTABSIZE</a>; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++) <em class='brace'>{</em>
<a id='L100' name='L100'></a> 100         <strong class='reserved'>for</strong>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>]; <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>; <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a>) <em class='brace'>{</em>
<a id='L101' name='L101'></a> 101             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "#%04X\n", <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/9.html' title='Multiple used in 68 places.'>adr</a>);
<a id='L102' name='L102'></a> 102             <a href='../Y/69.html' title='Multiple used in 30 places.'>cnt</a>++;
<a id='L103' name='L103'></a> 103         <em class='brace'>}</em>
<a id='L104' name='L104'></a> 104     <em class='brace'>}</em>
<a id='L105' name='L105'></a> 105     <strong class='reserved'>if</strong>(<a href='../Y/69.html' title='Multiple used in 30 places.'>cnt</a> == 0) <em class='brace'>{</em>
<a id='L106' name='L106'></a> 106         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "(No breakpoints.)\n");
<a id='L107' name='L107'></a> 107     <em class='brace'>}</em>
<a id='L108' name='L108'></a> 108 <em class='brace'>}</em>
<a id='L109' name='L109'></a> 109 
<a id='L110' name='L110'></a> 110 <strong class='reserved'>void</strong> <a href='../S/3421.html#L123' title='Referred from 123 in src/monitor.c.'>freebpslist</a>(<a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/118.html' title='Multiple used in 2 places.'>head</a>)
<a id='L111' name='L111'></a> 111 <em class='brace'>{</em>
<a id='L112' name='L112'></a> 112     <a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L113' name='L113'></a> 113     <a href='../S/3006.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/186.html' title='Multiple used in 17 places.'>q</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L114' name='L114'></a> 114     <strong class='reserved'>for</strong>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/118.html' title='Multiple used in 2 places.'>head</a>; <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>; <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/186.html' title='Multiple used in 17 places.'>q</a>) <em class='brace'>{</em>
<a id='L115' name='L115'></a> 115         <a href='../Y/186.html' title='Multiple used in 17 places.'>q</a> = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>-&gt;<a href='../Y/159.html' title='Multiple used in 30 places.'>next</a>;
<a id='L116' name='L116'></a> 116         <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>);
<a id='L117' name='L117'></a> 117     <em class='brace'>}</em>
<a id='L118' name='L118'></a> 118 <em class='brace'>}</em>
<a id='L119' name='L119'></a> 119 
<a id='L120' name='L120'></a> 120 <strong class='reserved'>void</strong> <a href='../R/148.html' title='Multiple referred from 4 places.'>freebps</a>()
<a id='L121' name='L121'></a> 121 <em class='brace'>{</em>
<a id='L122' name='L122'></a> 122     <strong class='reserved'>for</strong>(<strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = 0; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> &lt; <a href='../S/3006.html#L46' title='Defined at 46 in include/monitor.h.'>BPSTABSIZE</a>; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++) <em class='brace'>{</em>
<a id='L123' name='L123'></a> 123         <a href='../S/3421.html#L110' title='Defined at 110 in src/monitor.c.'>freebpslist</a>(<a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>]);
<a id='L124' name='L124'></a> 124         <a href='../Y/29.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>] = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L125' name='L125'></a> 125     <em class='brace'>}</em>
<a id='L126' name='L126'></a> 126 <em class='brace'>}</em>
<a id='L127' name='L127'></a> 127 
<a id='L128' name='L128'></a> 128 <a href='../S/3006.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a> *<a href='../R/194.html' title='Multiple referred from 2 places.'>monargstok</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/210.html' title='Multiple used in 116 places.'>str</a>)
<a id='L129' name='L129'></a> 129 <em class='brace'>{</em>
<a id='L130' name='L130'></a> 130     <a href='../S/3006.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a> *<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a> = <a href='../S/3439.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/3006.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a>), "args");
<a id='L131' name='L131'></a> 131     <strong class='reserved'>char</strong> *<a href='../Y/233.html' title='Multiple used in 9 places.'>tok</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L132' name='L132'></a> 132     <strong class='reserved'>char</strong> *<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L133' name='L133'></a> 133     <strong class='reserved'>char</strong> <a href='../Y/195.html' title='Multiple used in 6 places.'>sepc</a> = ' ';
<a id='L134' name='L134'></a> 134 
<a id='L135' name='L135'></a> 135     <a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> = 0;
<a id='L136' name='L136'></a> 136     <strong class='reserved'>if</strong>(!<a href='../Y/210.html' title='Multiple used in 116 places.'>str</a> || !<a href='../Y/210.html' title='Multiple used in 116 places.'>str</a>[0]) <em class='brace'>{</em>
<a id='L137' name='L137'></a> 137         <strong class='reserved'>return</strong> <a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>;
<a id='L138' name='L138'></a> 138     <em class='brace'>}</em>
<a id='L139' name='L139'></a> 139     <a href='../Y/233.html' title='Multiple used in 9 places.'>tok</a> = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../S/3439.html#L45' title='Defined at 45 in src/cmem.c.'>strdup_chk</a>(<a href='../Y/210.html' title='Multiple used in 116 places.'>str</a>, "argstok.p");
<a id='L140' name='L140'></a> 140     <strong class='reserved'>do</strong> <em class='brace'>{</em>
<a id='L141' name='L141'></a> 141         <strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = <a href='../Y/216.html' title='Multiple used in 6 places.'>strcspn</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>, " ");
<a id='L142' name='L142'></a> 142         <a href='../Y/195.html' title='Multiple used in 6 places.'>sepc</a> = <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>];
<a id='L143' name='L143'></a> 143         <a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a>)++] = <a href='../S/3439.html#L53' title='Defined at 53 in src/cmem.c.'>strndup_chk</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>, <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>, "args-&gt;argv[]");
<a id='L144' name='L144'></a> 144         <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> += <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> + 1;
<a id='L145' name='L145'></a> 145     <em class='brace'>}</em> <strong class='reserved'>while</strong>(<a href='../Y/195.html' title='Multiple used in 6 places.'>sepc</a> == ' ');
<a id='L146' name='L146'></a> 146     <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/233.html' title='Multiple used in 9 places.'>tok</a>);
<a id='L147' name='L147'></a> 147     <strong class='reserved'>return</strong> <a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>;
<a id='L148' name='L148'></a> 148 <em class='brace'>}</em>
<a id='L149' name='L149'></a> 149 
<a id='L150' name='L150'></a> 150 <a href='../S/3006.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a> *<a href='../R/197.html' title='Multiple referred from 2 places.'>monlinetok</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/135.html' title='Multiple used in 41 places.'>line</a>)
<a id='L151' name='L151'></a> 151 <em class='brace'>{</em>
<a id='L152' name='L152'></a> 152     <strong class='reserved'>char</strong> *<a href='../Y/234.html' title='Multiple used in 3 places.'>tokens</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L153' name='L153'></a> 153     <strong class='reserved'>char</strong> *<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L154' name='L154'></a> 154     <strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = 0;
<a id='L155' name='L155'></a> 155     <a href='../S/3006.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a> *<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L156' name='L156'></a> 156 
<a id='L157' name='L157'></a> 157     <strong class='reserved'>if</strong>(!<a href='../Y/135.html' title='Multiple used in 41 places.'>line</a>[0] || <a href='../Y/135.html' title='Multiple used in 41 places.'>line</a>[0] == '\n') <em class='brace'>{</em>
<a id='L158' name='L158'></a> 158         <strong class='reserved'>return</strong> <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L159' name='L159'></a> 159     <em class='brace'>}</em>
<a id='L160' name='L160'></a> 160     <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> = <a href='../Y/234.html' title='Multiple used in 3 places.'>tokens</a> = <a href='../S/3439.html#L45' title='Defined at 45 in src/cmem.c.'>strdup_chk</a>(<a href='../Y/135.html' title='Multiple used in 41 places.'>line</a>, "tokens");
<a id='L161' name='L161'></a> 161     <em class='comment'>/* コメントを削除 */</em>
<a id='L162' name='L162'></a> 162     <a href='../S/3439.html#L75' title='Defined at 75 in src/cmem.c.'>strip_casl2_comment</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>);
<a id='L163' name='L163'></a> 163     <em class='comment'>/* 文字列末尾の改行と空白を削除 */</em>
<a id='L164' name='L164'></a> 164     <a href='../S/3439.html#L68' title='Defined at 68 in src/cmem.c.'>strip_end</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>);
<a id='L165' name='L165'></a> 165 
<a id='L166' name='L166'></a> 166     <a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a> = <a href='../S/3439.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/3006.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a>), "moncmdl");
<a id='L167' name='L167'></a> 167     <em class='comment'>/* コマンドの取得 */</em>
<a id='L168' name='L168'></a> 168     <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = <a href='../Y/216.html' title='Multiple used in 6 places.'>strcspn</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>, " \t\n");
<a id='L169' name='L169'></a> 169     <a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a> = <a href='../S/3439.html#L53' title='Defined at 53 in src/cmem.c.'>strndup_chk</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>, <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>, "moncmdl-&gt;cmd");
<a id='L170' name='L170'></a> 170     <em class='comment'>/* コマンドと引数の間の空白をスキップ */</em>
<a id='L171' name='L171'></a> 171     <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> += <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>;
<a id='L172' name='L172'></a> 172     <strong class='reserved'>while</strong>(*<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> == ' ' || *<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a> == '\t') <em class='brace'>{</em>
<a id='L173' name='L173'></a> 173         <a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>++;
<a id='L174' name='L174'></a> 174     <em class='brace'>}</em>
<a id='L175' name='L175'></a> 175     <em class='comment'>/* 引数として、改行までの文字列を取得 */</em>
<a id='L176' name='L176'></a> 176     <strong class='reserved'>if</strong>(<a href='../Y/216.html' title='Multiple used in 6 places.'>strcspn</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>, "\n") &gt; 0) <em class='brace'>{</em>
<a id='L177' name='L177'></a> 177         <a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a> = <a href='../S/3421.html#L128' title='Defined at 128 in src/monitor.c.'>monargstok</a>(<a href='../Y/176.html' title='Multiple used in 127 places.'>p</a>);
<a id='L178' name='L178'></a> 178     <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L179' name='L179'></a> 179         <a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a> = <a href='../S/3439.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/3006.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a>), "moncmdl.args");
<a id='L180' name='L180'></a> 180         <a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> = 0;
<a id='L181' name='L181'></a> 181     <em class='brace'>}</em>
<a id='L182' name='L182'></a> 182     <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/234.html' title='Multiple used in 3 places.'>tokens</a>);
<a id='L183' name='L183'></a> 183     <strong class='reserved'>return</strong> <a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>;
<a id='L184' name='L184'></a> 184 <em class='brace'>}</em>
<a id='L185' name='L185'></a> 185 
<a id='L186' name='L186'></a> 186 <a href='../Y/27.html' title='Multiple used in 55 places.'>bool</a> <a href='../R/223.html' title='Multiple referred from 24 places.'>stracmp</a>(<strong class='reserved'>char</strong> *<a href='../Y/211.html' title='Multiple used in 3 places.'>str1</a>, <strong class='reserved'>int</strong> <a href='../Y/212.html' title='Multiple used in 2 places.'>str2c</a>, <strong class='reserved'>char</strong> *<a href='../Y/213.html' title='Multiple used in 2 places.'>str2v</a>[])
<a id='L187' name='L187'></a> 187 <em class='brace'>{</em>
<a id='L188' name='L188'></a> 188     <strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>;
<a id='L189' name='L189'></a> 189     <strong class='reserved'>if</strong>(<a href='../Y/211.html' title='Multiple used in 3 places.'>str1</a> == <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L190' name='L190'></a> 190         <strong class='reserved'>return</strong> <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L191' name='L191'></a> 191     <em class='brace'>}</em>
<a id='L192' name='L192'></a> 192     <strong class='reserved'>for</strong>(<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = 0; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> &lt; <a href='../Y/212.html' title='Multiple used in 2 places.'>str2c</a>; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++) <em class='brace'>{</em>
<a id='L193' name='L193'></a> 193         <strong class='reserved'>if</strong>(<a href='../Y/214.html' title='Multiple used in 5 places.'>strcmp</a>(<a href='../Y/211.html' title='Multiple used in 3 places.'>str1</a>, <a href='../Y/213.html' title='Multiple used in 2 places.'>str2v</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>]) == 0) <em class='brace'>{</em>
<a id='L194' name='L194'></a> 194             <strong class='reserved'>return</strong> <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L195' name='L195'></a> 195         <em class='brace'>}</em>
<a id='L196' name='L196'></a> 196     <em class='brace'>}</em>
<a id='L197' name='L197'></a> 197     <strong class='reserved'>return</strong> <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L198' name='L198'></a> 198 <em class='brace'>}</em>
<a id='L199' name='L199'></a> 199 
<a id='L200' name='L200'></a> 200 <strong class='reserved'>void</strong> <a href='../R/236.html' title='Multiple referred from 4 places.'>warn_ignore_arg</a>(<strong class='reserved'>int</strong> <a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a>, <strong class='reserved'>char</strong> *<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[])
<a id='L201' name='L201'></a> 201 <em class='brace'>{</em>
<a id='L202' name='L202'></a> 202     <strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>;
<a id='L203' name='L203'></a> 203     <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/205.html' title='Multiple used in 29 places.'>stderr</a>, "Info: arguments '");
<a id='L204' name='L204'></a> 204     <strong class='reserved'>for</strong>(<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = 0; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> &lt; <a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a>; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++) <em class='brace'>{</em>
<a id='L205' name='L205'></a> 205         <strong class='reserved'>if</strong>(<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> &gt; 0) <em class='brace'>{</em>
<a id='L206' name='L206'></a> 206             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/205.html' title='Multiple used in 29 places.'>stderr</a>, " ");
<a id='L207' name='L207'></a> 207         <em class='brace'>}</em>
<a id='L208' name='L208'></a> 208         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/205.html' title='Multiple used in 29 places.'>stderr</a>, "%s", <a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>]);
<a id='L209' name='L209'></a> 209     <em class='brace'>}</em>
<a id='L210' name='L210'></a> 210     <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/205.html' title='Multiple used in 29 places.'>stderr</a>, "' are ignored.\n");
<a id='L211' name='L211'></a> 211 <em class='brace'>}</em>
<a id='L212' name='L212'></a> 212 
<a id='L213' name='L213'></a> 213 <strong class='reserved'>void</strong> <a href='../S/3421.html#L302' title='Referred from 302 in src/monitor.c.'>mon_break</a>(<strong class='reserved'>int</strong> <a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a>, <strong class='reserved'>char</strong> *<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[])
<a id='L214' name='L214'></a> 214 <em class='brace'>{</em>
<a id='L215' name='L215'></a> 215     <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/243.html' title='Multiple used in 107 places.'>w</a>;
<a id='L216' name='L216'></a> 216     <strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = 0;
<a id='L217' name='L217'></a> 217     <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"l", "list"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L218' name='L218'></a> 218         <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++;
<a id='L219' name='L219'></a> 219         <a href='../S/3421.html#L93' title='Defined at 93 in src/monitor.c.'>listbps</a>();
<a id='L220' name='L220'></a> 220     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"r", "reset"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L221' name='L221'></a> 221         <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++;
<a id='L222' name='L222'></a> 222         <a href='../S/3421.html#L120' title='Defined at 120 in src/monitor.c.'>freebps</a>();
<a id='L223' name='L223'></a> 223         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "All breakpoints are deleted.\n");
<a id='L224' name='L224'></a> 224     <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L225' name='L225'></a> 225         <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; 1) <em class='brace'>{</em>
<a id='L226' name='L226'></a> 226             <strong class='reserved'>if</strong>((<a href='../Y/243.html' title='Multiple used in 107 places.'>w</a> = <a href='../S/3436.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[1])) == 0x0) <em class='brace'>{</em>
<a id='L227' name='L227'></a> 227                 <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/205.html' title='Multiple used in 29 places.'>stderr</a>, "%s: address error\n", <a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[1]);
<a id='L228' name='L228'></a> 228             <em class='brace'>}</em>
<a id='L229' name='L229'></a> 229         <em class='brace'>}</em>
<a id='L230' name='L230'></a> 230         <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"a", "add"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L231' name='L231'></a> 231             <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> += 2;
<a id='L232' name='L232'></a> 232             <strong class='reserved'>if</strong>(<a href='../S/3421.html#L41' title='Defined at 41 in src/monitor.c.'>addbps</a>(<a href='../Y/243.html' title='Multiple used in 107 places.'>w</a>) == <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>) <em class='brace'>{</em>
<a id='L233' name='L233'></a> 233                 <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "#%04X: breakpoint added\n", <a href='../Y/243.html' title='Multiple used in 107 places.'>w</a>);
<a id='L234' name='L234'></a> 234             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L235' name='L235'></a> 235                 <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "No breakpoint added\n");
<a id='L236' name='L236'></a> 236             <em class='brace'>}</em>
<a id='L237' name='L237'></a> 237         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"d", "del"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L238' name='L238'></a> 238             <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> += 2;
<a id='L239' name='L239'></a> 239             <strong class='reserved'>if</strong>(<a href='../S/3421.html#L61' title='Defined at 61 in src/monitor.c.'>delbps</a>(<a href='../Y/243.html' title='Multiple used in 107 places.'>w</a>) == <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>) <em class='brace'>{</em>
<a id='L240' name='L240'></a> 240                 <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "#%04X: breakpoint deleted\n", <a href='../Y/243.html' title='Multiple used in 107 places.'>w</a>);
<a id='L241' name='L241'></a> 241             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L242' name='L242'></a> 242                 <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "No breakpoint deleted\n");
<a id='L243' name='L243'></a> 243             <em class='brace'>}</em>
<a id='L244' name='L244'></a> 244         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 3, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"?", "h", "help"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L245' name='L245'></a> 245             <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++;
<a id='L246' name='L246'></a> 246             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "breakpoint manipulate:\n");
<a id='L247' name='L247'></a> 247             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "    b[reak] a[dd] &lt;address&gt;\n");
<a id='L248' name='L248'></a> 248             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "    b[reak] d[el] &lt;address&gt;\n");
<a id='L249' name='L249'></a> 249             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "    b[reak] l[ist]\n");
<a id='L250' name='L250'></a> 250             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "    b[reak] r[eset]\n");
<a id='L251' name='L251'></a> 251         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L252' name='L252'></a> 252             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/205.html' title='Multiple used in 29 places.'>stderr</a>, "%s: Not breakpoint manipulate command. see `b ?'.\n", <a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0]);
<a id='L253' name='L253'></a> 253         <em class='brace'>}</em>
<a id='L254' name='L254'></a> 254         <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>) <em class='brace'>{</em>
<a id='L255' name='L255'></a> 255             <a href='../S/3421.html#L200' title='Defined at 200 in src/monitor.c.'>warn_ignore_arg</a>(<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> - <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>, <a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a> + <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>);
<a id='L256' name='L256'></a> 256         <em class='brace'>}</em>
<a id='L257' name='L257'></a> 257     <em class='brace'>}</em>
<a id='L258' name='L258'></a> 258 <em class='brace'>}</em>
<a id='L259' name='L259'></a> 259 
<a id='L260' name='L260'></a> 260 <strong class='reserved'>void</strong> <a href='../S/3421.html#L307' title='Referred from 307 in src/monitor.c.'>mon_dump</a>(<strong class='reserved'>int</strong> <a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a>, <strong class='reserved'>char</strong> *<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[])
<a id='L261' name='L261'></a> 261 <em class='brace'>{</em>
<a id='L262' name='L262'></a> 262     <strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = 0;
<a id='L263' name='L263'></a> 263     <a href='../S/3011.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/84.html' title='Multiple used in 8 places.'>dump_start</a> = 0, <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_end</a> = 0x40;
<a id='L264' name='L264'></a> 264     <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"a", "auto"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L265' name='L265'></a> 265         <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/82.html' title='Multiple used in 8 places.'>dump</a> = <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L266' name='L266'></a> 266     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"no", "noauto"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L267' name='L267'></a> 267         <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/82.html' title='Multiple used in 8 places.'>dump</a> = <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L268' name='L268'></a> 268     <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L269' name='L269'></a> 269         <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>) <em class='brace'>{</em>
<a id='L270' name='L270'></a> 270             <a href='../Y/84.html' title='Multiple used in 8 places.'>dump_start</a> = <a href='../S/3436.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++]);
<a id='L271' name='L271'></a> 271             <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>) <em class='brace'>{</em>
<a id='L272' name='L272'></a> 272                 <strong class='reserved'>if</strong>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>][0] =='+') <em class='brace'>{</em>
<a id='L273' name='L273'></a> 273                     <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_end</a> = <a href='../Y/84.html' title='Multiple used in 8 places.'>dump_start</a> + <a href='../S/3436.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>] + 1);
<a id='L274' name='L274'></a> 274                 <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L275' name='L275'></a> 275                     <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_end</a> = <a href='../S/3436.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>]) + 1;
<a id='L276' name='L276'></a> 276                 <em class='brace'>}</em>
<a id='L277' name='L277'></a> 277             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L278' name='L278'></a> 278                 <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_end</a> += <a href='../Y/84.html' title='Multiple used in 8 places.'>dump_start</a>;
<a id='L279' name='L279'></a> 279             <em class='brace'>}</em>
<a id='L280' name='L280'></a> 280         <em class='brace'>}</em>
<a id='L281' name='L281'></a> 281         <a href='../S/3447.html#L4' title='Defined at 4 in src/dump.c.'>dumpmemory</a>(<a href='../Y/84.html' title='Multiple used in 8 places.'>dump_start</a>, <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_end</a>);
<a id='L282' name='L282'></a> 282         <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/84.html' title='Multiple used in 8 places.'>dump_start</a> = <a href='../Y/84.html' title='Multiple used in 8 places.'>dump_start</a>;
<a id='L283' name='L283'></a> 283         <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/83.html' title='Multiple used in 8 places.'>dump_end</a> = <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_end</a>;
<a id='L284' name='L284'></a> 284     <em class='brace'>}</em>
<a id='L285' name='L285'></a> 285     <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; ++<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>) <em class='brace'>{</em>
<a id='L286' name='L286'></a> 286         <a href='../S/3421.html#L200' title='Defined at 200 in src/monitor.c.'>warn_ignore_arg</a>(<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> - <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>, <a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a> + <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>);
<a id='L287' name='L287'></a> 287     <em class='brace'>}</em>
<a id='L288' name='L288'></a> 288 <em class='brace'>}</em>
<a id='L289' name='L289'></a> 289 
<a id='L290' name='L290'></a> 290 <a href='../S/3006.html#L57' title='Defined at 57 in include/monitor.h.'>MONCMDTYPE</a> <a href='../R/196.html' title='Multiple referred from 2 places.'>monitorcmd</a>(<strong class='reserved'>char</strong> *<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, <a href='../S/3006.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a> *<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>)
<a id='L291' name='L291'></a> 291 <em class='brace'>{</em>
<a id='L292' name='L292'></a> 292     <a href='../S/3006.html#L57' title='Defined at 57 in include/monitor.h.'>MONCMDTYPE</a> <a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/3006.html#L54' title='Defined at 54 in include/monitor.h.'>MONREPEAT</a>;
<a id='L293' name='L293'></a> 293     <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"a", "assemble"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L294' name='L294'></a> 294         <strong class='reserved'>if</strong>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> == 0) <em class='brace'>{</em>
<a id='L295' name='L295'></a> 295             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/205.html' title='Multiple used in 29 places.'>stderr</a>, "Error: Input file name.\n");
<a id='L296' name='L296'></a> 296         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> == 1) <em class='brace'>{</em>
<a id='L297' name='L297'></a> 297             <a href='../S/3444.html#L727' title='Defined at 727 in src/assemble.c.'>assemble</a>(1, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em><a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0]<em class='brace'>}</em>, 0);
<a id='L298' name='L298'></a> 298         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L299' name='L299'></a> 299             <a href='../S/3444.html#L727' title='Defined at 727 in src/assemble.c.'>assemble</a>(1, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em><a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0]<em class='brace'>}</em>, <a href='../S/3436.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[1]));
<a id='L300' name='L300'></a> 300         <em class='brace'>}</em>
<a id='L301' name='L301'></a> 301     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"b", "break"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L302' name='L302'></a> 302         <a href='../S/3421.html#L213' title='Defined at 213 in src/monitor.c.'>mon_break</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a>, <a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>);
<a id='L303' name='L303'></a> 303     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"c", "continue"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L304' name='L304'></a> 304         <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/208.html' title='Multiple used in 5 places.'>step</a> = <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L305' name='L305'></a> 305         <a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/3006.html#L55' title='Defined at 55 in include/monitor.h.'>MONNEXT</a>;
<a id='L306' name='L306'></a> 306     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"d", "dump"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L307' name='L307'></a> 307         <a href='../S/3421.html#L260' title='Defined at 260 in src/monitor.c.'>mon_dump</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a>, <a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>);
<a id='L308' name='L308'></a> 308     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"l", "load"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L309' name='L309'></a> 309         <a href='../Y/91.html' title='Multiple used in 25 places.'>execptr</a>-&gt;<a href='../Y/86.html' title='Multiple used in 25 places.'>end</a> = <a href='../S/3455.html#L20' title='Defined at 20 in src/load.c.'>loadassemble</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], <a href='../S/3436.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[1]));
<a id='L310' name='L310'></a> 310     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"n", "next"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L311' name='L311'></a> 311         <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/208.html' title='Multiple used in 5 places.'>step</a> = <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L312' name='L312'></a> 312         <a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/3006.html#L55' title='Defined at 55 in include/monitor.h.'>MONNEXT</a>;
<a id='L313' name='L313'></a> 313     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"q", "quit"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L314' name='L314'></a> 314         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "Quit: COMET II monitor\n");
<a id='L315' name='L315'></a> 315         <a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/3006.html#L56' title='Defined at 56 in include/monitor.h.'>MONQUIT</a>;
<a id='L316' name='L316'></a> 316     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"r", "reverse"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L317' name='L317'></a> 317         <strong class='reserved'>if</strong>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> == 2) <em class='brace'>{</em>
<a id='L318' name='L318'></a> 318             <a href='../S/3424.html#L228' title='Defined at 228 in src/disassemble.c.'>disassemble_memory</a>(<a href='../S/3436.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0]), <a href='../S/3436.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[1]));
<a id='L319' name='L319'></a> 319         <em class='brace'>}</em>
<a id='L320' name='L320'></a> 320     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 1, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"reset"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L321' name='L321'></a> 321         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "Reset COMET II CPU.\n");
<a id='L322' name='L322'></a> 322         <a href='../S/3457.html#L311' title='Defined at 311 in src/struct.c.'>comet2_reset</a>();     <em class='comment'>/* COMET II仮想マシンのCPUのリセット */</em>
<a id='L323' name='L323'></a> 323     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 1, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"resetall"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L324' name='L324'></a> 324         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "Reset COMET II CPU and memory.\n");
<a id='L325' name='L325'></a> 325         <a href='../S/3457.html#L320' title='Defined at 320 in src/struct.c.'>comet2_resetall</a>();     <em class='comment'>/* COMET II仮想マシンのCPUとメモリのリセット */</em>
<a id='L326' name='L326'></a> 326     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"t", "trace"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L327' name='L327'></a> 327         <strong class='reserved'>if</strong>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; 0 &amp;&amp; <a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"a", "auto"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L328' name='L328'></a> 328             <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/139.html' title='Multiple used in 6 places.'>logical</a> = <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L329' name='L329'></a> 329             <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/235.html' title='Multiple used in 13 places.'>trace</a> = <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L330' name='L330'></a> 330         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; 0 &amp;&amp; <a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"no", "noauto"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L331' name='L331'></a> 331             <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/235.html' title='Multiple used in 13 places.'>trace</a> = <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L332' name='L332'></a> 332         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L333' name='L333'></a> 333             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "#%04X: Register::::\n", <a href='../Y/224.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/78.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/179.html' title='Multiple used in 110 places.'>pr</a>);
<a id='L334' name='L334'></a> 334             <a href='../S/3447.html#L38' title='Defined at 38 in src/dump.c.'>dspregister</a>();
<a id='L335' name='L335'></a> 335         <em class='brace'>}</em>
<a id='L336' name='L336'></a> 336     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"T", "tracelogical"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L337' name='L337'></a> 337         <strong class='reserved'>if</strong>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; 0 &amp;&amp; <a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"a", "auto"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L338' name='L338'></a> 338             <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/139.html' title='Multiple used in 6 places.'>logical</a> = <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L339' name='L339'></a> 339             <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/235.html' title='Multiple used in 13 places.'>trace</a> = <a href='../Y/236.html' title='Multiple used in 79 places.'>true</a>;
<a id='L340' name='L340'></a> 340         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a> &gt; 0 &amp;&amp; <a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"no", "noauto"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L341' name='L341'></a> 341             <a href='../Y/90.html' title='Multiple used in 35 places.'>execmode</a>.<a href='../Y/235.html' title='Multiple used in 13 places.'>trace</a> = <a href='../Y/94.html' title='Multiple used in 52 places.'>false</a>;
<a id='L342' name='L342'></a> 342         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L343' name='L343'></a> 343             <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "#%04X: Register::::\n", <a href='../Y/224.html' title='Multiple used in 243 places.'>sys</a>-&gt;<a href='../Y/78.html' title='Multiple used in 218 places.'>cpu</a>-&gt;<a href='../Y/179.html' title='Multiple used in 110 places.'>pr</a>);
<a id='L344' name='L344'></a> 344             <a href='../S/3447.html#L38' title='Defined at 38 in src/dump.c.'>dspregister</a>();
<a id='L345' name='L345'></a> 345         <em class='brace'>}</em>
<a id='L346' name='L346'></a> 346     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/3421.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, 3, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"?", "h", "help"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L347' name='L347'></a> 347         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "!&lt;system command&gt; -- Run a system command.\n");
<a id='L348' name='L348'></a> 348         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "b[reak] -- Manipulate Breakpoints. See details, `b ?'.\n");
<a id='L349' name='L349'></a> 349         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "c[ontinue] -- Continue running your program.\n");
<a id='L350' name='L350'></a> 350         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "d[ump] -- Display memory dump. `d[ump] a[uto]/n[oauto]' set auto/noauto display.\n");
<a id='L351' name='L351'></a> 351         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "l[oad] -- Load object from a file to the memory. `l[oad] &lt;filepath&gt; &lt;address&gt;' if address is omitted, load to address 0.\n");
<a id='L352' name='L352'></a> 352         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "n[ext] -- Go next instruction.\n");
<a id='L353' name='L353'></a> 353         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "q[uit] -- Quit running your program.\n");
<a id='L354' name='L354'></a> 354         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "reset -- Reset COMET II CPU.\n");
<a id='L355' name='L355'></a> 355         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "resetall -- Reset COMET II CPU and memory.\n");
<a id='L356' name='L356'></a> 356         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "r[everse] -- Disassemble memory. `r[everse] &lt;start address&gt; &lt;end address&gt;.\n");
<a id='L357' name='L357'></a> 357         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "s[ave] -- Save object from the memory to a file. `s[ave] &lt;filepath&gt; [&lt;start address1&gt; [&lt;end address&gt;]]' if &lt;start address&gt; and &lt;end address&gt; is omitted, save the whole memory. if &lt;end address&gt; is omitted, save the memory after &lt;start address&gt;.\n");
<a id='L358' name='L358'></a> 358         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "t[race] -- Display CPU register. `t[race] a[uto]/n[oauto]' set auto/noauto display. \n");
<a id='L359' name='L359'></a> 359         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "T[race] -- Display CPU register as logical value. `t[race] a[uto]/n[oauto]' set auto/noauto display. \n");
<a id='L360' name='L360'></a> 360         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "?/h[elp] -- Display this help.\n");
<a id='L361' name='L361'></a> 361     <em class='brace'>}</em>
<a id='L362' name='L362'></a> 362     <strong class='reserved'>return</strong> <a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a>;
<a id='L363' name='L363'></a> 363 <em class='brace'>}</em>
<a id='L364' name='L364'></a> 364 
<a id='L365' name='L365'></a> 365 <strong class='reserved'>void</strong> <a href='../S/3421.html#L435' title='Referred from 435 in src/monitor.c.'>free_moncmdline</a>(<a href='../S/3006.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a> *<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>)
<a id='L366' name='L366'></a> 366 <em class='brace'>{</em>
<a id='L367' name='L367'></a> 367     <strong class='reserved'>int</strong> <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>;
<a id='L368' name='L368'></a> 368     <a href='../Y/22.html' title='Multiple used in 24 places.'>assert</a>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>);
<a id='L369' name='L369'></a> 369     <strong class='reserved'>if</strong>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L370' name='L370'></a> 370         <strong class='reserved'>for</strong>(<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> = 0;  <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a> &lt; <a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/10.html' title='Multiple used in 39 places.'>argc</a>; <a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>++) <em class='brace'>{</em>
<a id='L371' name='L371'></a> 371             <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/12.html' title='Multiple used in 65 places.'>argv</a>[<a href='../Y/119.html' title='Multiple used in 230 places.'>i</a>]);
<a id='L372' name='L372'></a> 372         <em class='brace'>}</em>
<a id='L373' name='L373'></a> 373         <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>);
<a id='L374' name='L374'></a> 374     <em class='brace'>}</em>
<a id='L375' name='L375'></a> 375     <strong class='reserved'>if</strong>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L376' name='L376'></a> 376         <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>);
<a id='L377' name='L377'></a> 377     <em class='brace'>}</em>
<a id='L378' name='L378'></a> 378     <strong class='reserved'>if</strong>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a> != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L379' name='L379'></a> 379         <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>);
<a id='L380' name='L380'></a> 380     <em class='brace'>}</em>
<a id='L381' name='L381'></a> 381 <em class='brace'>}</em>
<a id='L382' name='L382'></a> 382 
<a id='L383' name='L383'></a> 383 <strong class='reserved'>int</strong> <a href='../R/198.html' title='Multiple referred from 3 places.'>monquit</a>()
<a id='L384' name='L384'></a> 384 <em class='brace'>{</em>
<a id='L385' name='L385'></a> 385     <strong class='reserved'>int</strong> <a href='../Y/204.html' title='Multiple used in 34 places.'>stat</a> = 0;
<a id='L386' name='L386'></a> 386     <a href='../S/3457.html#L331' title='Defined at 331 in src/struct.c.'>comet2_shutdown</a>();
<a id='L387' name='L387'></a> 387     <a href='../S/3421.html#L120' title='Defined at 120 in src/monitor.c.'>freebps</a>();
<a id='L388' name='L388'></a> 388     <a href='../S/3457.html#L146' title='Defined at 146 in src/struct.c.'>free_cmdtable</a>(<a href='../S/3004.html#L64' title='Defined at 64 in include/struct.h.'>HASH_CMDTYPE</a>);
<a id='L389' name='L389'></a> 389     <a href='../S/3457.html#L146' title='Defined at 146 in src/struct.c.'>free_cmdtable</a>(<a href='../S/3004.html#L65' title='Defined at 65 in include/struct.h.'>HASH_CODE</a>);
<a id='L390' name='L390'></a> 390     <strong class='reserved'>if</strong>(<a href='../Y/34.html' title='Multiple used in 59 places.'>cerr</a>-&gt;<a href='../Y/162.html' title='Multiple used in 57 places.'>num</a> &gt; 0) <em class='brace'>{</em>
<a id='L391' name='L391'></a> 391         <a href='../Y/204.html' title='Multiple used in 34 places.'>stat</a> = 1;
<a id='L392' name='L392'></a> 392     <em class='brace'>}</em>
<a id='L393' name='L393'></a> 393     <a href='../S/3451.html#L72' title='Defined at 72 in src/cerr.c.'>freecerr</a>();
<a id='L394' name='L394'></a> 394     <strong class='reserved'>return</strong> <a href='../Y/204.html' title='Multiple used in 34 places.'>stat</a>;
<a id='L395' name='L395'></a> 395 <em class='brace'>}</em>
<a id='L396' name='L396'></a> 396 
<a id='L397' name='L397'></a> 397 <strong class='reserved'>void</strong> <a href='../R/195.html' title='Multiple referred from 8 places.'>monitor</a>()
<a id='L398' name='L398'></a> 398 <em class='brace'>{</em>
<a id='L399' name='L399'></a> 399     <strong class='reserved'>static</strong> <strong class='reserved'>char</strong> *<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L400' name='L400'></a> 400     <strong class='reserved'>static</strong> <strong class='reserved'>char</strong> *<a href='../Y/133.html' title='Multiple used in 7 places.'>last_buf</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L401' name='L401'></a> 401     <a href='../S/3006.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a> *<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a> = <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>;
<a id='L402' name='L402'></a> 402     <a href='../S/3006.html#L57' title='Defined at 57 in include/monitor.h.'>MONCMDTYPE</a> <a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/3006.html#L54' title='Defined at 54 in include/monitor.h.'>MONREPEAT</a>;
<a id='L403' name='L403'></a> 403 
<a id='L404' name='L404'></a> 404     <strong class='reserved'>do</strong> <em class='brace'>{</em>
<a id='L405' name='L405'></a> 405         <a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a> = readline(<a href='../Y/154.html' title='Multiple used in 2 places.'>monitor_prompt</a>);
<a id='L406' name='L406'></a> 406         <em class='comment'>/* EOFの処理 */</em>
<a id='L407' name='L407'></a> 407         <strong class='reserved'>if</strong>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a> == <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L408' name='L408'></a> 408             <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>);
<a id='L409' name='L409'></a> 409             <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/133.html' title='Multiple used in 7 places.'>last_buf</a>);
<a id='L410' name='L410'></a> 410             <a href='../Y/92.html' title='Multiple used in 9 places.'>exit</a>(<a href='../S/3421.html#L383' title='Defined at 383 in src/monitor.c.'>monquit</a>());
<a id='L411' name='L411'></a> 411         <em class='brace'>}</em>
<a id='L412' name='L412'></a> 412         <em class='comment'>/* 空行(Enterだけ)の場合は、前回のコマンドをリピート */</em>
<a id='L413' name='L413'></a> 413         <strong class='reserved'>if</strong>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>[0] == '\0') <em class='brace'>{</em>
<a id='L414' name='L414'></a> 414             <strong class='reserved'>if</strong>(<a href='../Y/133.html' title='Multiple used in 7 places.'>last_buf</a> == <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L415' name='L415'></a> 415                 <em class='comment'>/* 前回実行したコマンドがなければ何もしない */</em>
<a id='L416' name='L416'></a> 416                 <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>);
<a id='L417' name='L417'></a> 417                 <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "&gt;\n");
<a id='L418' name='L418'></a> 418             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L419' name='L419'></a> 419                 <a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a> = <a href='../S/3439.html#L45' title='Defined at 45 in src/cmem.c.'>strdup_chk</a>(<a href='../Y/133.html' title='Multiple used in 7 places.'>last_buf</a>, "monitor.buf_repeat");
<a id='L420' name='L420'></a> 420                 <a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/3006.html#L54' title='Defined at 54 in include/monitor.h.'>MONREPEAT</a>;
<a id='L421' name='L421'></a> 421             <em class='brace'>}</em>
<a id='L422' name='L422'></a> 422         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L423' name='L423'></a> 423             <a href='../S/3439.html#L68' title='Defined at 68 in src/cmem.c.'>strip_end</a>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>);        <em class='comment'>/* 文字列末尾の改行と空白を削除 */</em>
<a id='L424' name='L424'></a> 424             <em class='comment'>/* 履歴(ヒストリ)に追加 */</em>
<a id='L425' name='L425'></a> 425             add_history(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>);
<a id='L426' name='L426'></a> 426             <a href='../Y/133.html' title='Multiple used in 7 places.'>last_buf</a> = <a href='../S/3439.html#L45' title='Defined at 45 in src/cmem.c.'>strdup_chk</a>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>, "monitor.last_buf");
<a id='L427' name='L427'></a> 427         <em class='brace'>}</em>
<a id='L428' name='L428'></a> 428         <em class='comment'>/* 実行コマンドをstdout に出力。ログに残すため */</em>
<a id='L429' name='L429'></a> 429         <a href='../Y/104.html' title='Multiple used in 124 places.'>fprintf</a>(<a href='../Y/207.html' title='Multiple used in 96 places.'>stdout</a>, "&gt; %s\n", <a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>);
<a id='L430' name='L430'></a> 430 
<a id='L431' name='L431'></a> 431         <strong class='reserved'>if</strong>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>[0] == '!') <em class='brace'>{</em>
<a id='L432' name='L432'></a> 432             system(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a> + 1);
<a id='L433' name='L433'></a> 433         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>((<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a> = <a href='../S/3421.html#L150' title='Defined at 150 in src/monitor.c.'>monlinetok</a>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>)) != <a href='../Y/4.html' title='Multiple used in 195 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L434' name='L434'></a> 434             <a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> = <a href='../S/3421.html#L290' title='Defined at 290 in src/monitor.c.'>monitorcmd</a>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/60.html' title='Multiple used in 87 places.'>cmd</a>, <a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/11.html' title='Multiple used in 29 places.'>args</a>);
<a id='L435' name='L435'></a> 435             <a href='../S/3421.html#L365' title='Defined at 365 in src/monitor.c.'>free_moncmdline</a>(<a href='../Y/153.html' title='Multiple used in 21 places.'>moncmdl</a>);
<a id='L436' name='L436'></a> 436         <em class='brace'>}</em>
<a id='L437' name='L437'></a> 437         <strong class='reserved'>if</strong>(<a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/3006.html#L56' title='Defined at 56 in include/monitor.h.'>MONQUIT</a>) <em class='brace'>{</em>
<a id='L438' name='L438'></a> 438             <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>);
<a id='L439' name='L439'></a> 439             <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/133.html' title='Multiple used in 7 places.'>last_buf</a>);
<a id='L440' name='L440'></a> 440             <a href='../Y/92.html' title='Multiple used in 9 places.'>exit</a>(<a href='../S/3421.html#L383' title='Defined at 383 in src/monitor.c.'>monquit</a>());
<a id='L441' name='L441'></a> 441         <em class='brace'>}</em>
<a id='L442' name='L442'></a> 442     <em class='brace'>}</em> <strong class='reserved'>while</strong>(<a href='../Y/67.html' title='Multiple used in 27 places.'>cmdtype</a> == <a href='../S/3006.html#L54' title='Defined at 54 in include/monitor.h.'>MONREPEAT</a>);
<a id='L443' name='L443'></a> 443     <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/30.html' title='Multiple used in 21 places.'>buf</a>);
<a id='L444' name='L444'></a> 444     <a href='../S/3010.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/133.html' title='Multiple used in 7 places.'>last_buf</a>);
<a id='L445' name='L445'></a> 445 <em class='brace'>}</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;]<a href='#L17'>[^]</a><a href='#L397'>[v]</a><a href='#TOP'>[top]</a>[bottom]<a href='../mains.html'>[index]</a><a href='../help.html'>[help]</a> */</em>
</body>
</html>

/* [<][>][^][v][top][bottom][index][help] */