root/doc_inner/gnu_global/S/41909.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/42028.html'>src</a>/monitor.c</h2>
<em class='comment'>/* [&lt;][&gt;]<a href='#L17'>[^]</a><a href='#L386'>[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.'>mon_break</a></li>
<li><a href='#L247' title='Defined at 247.'>mon_dump</a></li>
<li><a href='#L277' title='Defined at 277.'>monitorcmd</a></li>
<li><a href='#L352' title='Defined at 352.'>free_moncmdline</a></li>
<li><a href='#L370' title='Defined at 370.'>monquit</a></li>
<li><a href='#L386' title='Defined at 386.'>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='41479.html'>monitor.h</a>"
<a id='L5' name='L5'></a>   5 <em class='sharp'>#include</em> "<a href='41481.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/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../S/41479.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/151.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/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>)
<a id='L18' name='L18'></a>  18 <em class='brace'>{</em>
<a id='L19' name='L19'></a>  19     <a href='../S/41485.html#L21' title='Defined at 21 in include/hash.h.'>HKEY</a> *<a href='../Y/121.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/113.html' title='Multiple used in 19 places.'>h</a>;
<a id='L21' name='L21'></a>  21     <a href='../Y/121.html' title='Multiple used in 11 places.'>key</a>[0] = <a href='../S/41927.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/41485.html#L21' title='Defined at 21 in include/hash.h.'>HKEY</a>), "adrhash.key");
<a id='L22' name='L22'></a>  22     <a href='../Y/121.html' title='Multiple used in 11 places.'>key</a>[0]-&gt;<a href='../Y/237.html' title='Multiple used in 30 places.'>type</a> = <a href='../S/41485.html#L9' title='Defined at 9 in include/hash.h.'>INT</a>;
<a id='L23' name='L23'></a>  23     <a href='../Y/121.html' title='Multiple used in 11 places.'>key</a>[0]-&gt;<a href='../Y/239.html' title='Multiple used in 35 places.'>val</a>.<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> = <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>;
<a id='L24' name='L24'></a>  24     <a href='../Y/113.html' title='Multiple used in 19 places.'>h</a> = <a href='../S/41926.html#L3' title='Defined at 3 in src/hash.c.'>hash</a>(1, <a href='../Y/121.html' title='Multiple used in 11 places.'>key</a>, <a href='../S/41479.html#L46' title='Defined at 46 in include/monitor.h.'>BPSTABSIZE</a>);
<a id='L25' name='L25'></a>  25     <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/121.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/113.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/25.html' title='Multiple used in 56 places.'>bool</a> <a href='../R/159.html' title='Multiple referred from 3 places.'>getbps</a>(<a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>)
<a id='L30' name='L30'></a>  30 <em class='brace'>{</em>
<a id='L31' name='L31'></a>  31     <a href='../S/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 211 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/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../S/41909.html#L17' title='Defined at 17 in src/monitor.c.'>adrhash</a>(<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>)]; <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>; <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a>) <em class='brace'>{</em>
<a id='L34' name='L34'></a>  34         <strong class='reserved'>if</strong>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a> == <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>) <em class='brace'>{</em>
<a id='L35' name='L35'></a>  35             <strong class='reserved'>return</strong> <a href='../Y/235.html' title='Multiple used in 89 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/93.html' title='Multiple used in 58 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/25.html' title='Multiple used in 56 places.'>bool</a> <a href='../R/86.html' title='Multiple referred from 2 places.'>addbps</a>(<a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>)
<a id='L42' name='L42'></a>  42 <em class='brace'>{</em>
<a id='L43' name='L43'></a>  43     <a href='../S/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L44' name='L44'></a>  44     <strong class='reserved'>unsigned</strong> <a href='../Y/113.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/41909.html#L29' title='Defined at 29 in src/monitor.c.'>getbps</a>(<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>) == <a href='../Y/235.html' title='Multiple used in 89 places.'>true</a>) <em class='brace'>{</em>
<a id='L48' name='L48'></a>  48         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/204.html' title='Multiple used in 30 places.'>stderr</a>, "%04X: Breakpoint is already defined.\n", <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>);
<a id='L49' name='L49'></a>  49         <strong class='reserved'>return</strong> <a href='../Y/93.html' title='Multiple used in 58 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/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../S/41927.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/41479.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/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a> = <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>;
<a id='L55' name='L55'></a>  55     <em class='comment'>/* ハッシュ表へ追加 */</em>
<a id='L56' name='L56'></a>  56     <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a> = <a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/113.html' title='Multiple used in 19 places.'>h</a> = <a href='../S/41909.html#L17' title='Defined at 17 in src/monitor.c.'>adrhash</a>(<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>)];
<a id='L57' name='L57'></a>  57     <a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/113.html' title='Multiple used in 19 places.'>h</a>] = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>;
<a id='L58' name='L58'></a>  58     <strong class='reserved'>return</strong> <a href='../Y/235.html' title='Multiple used in 89 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/25.html' title='Multiple used in 56 places.'>bool</a> <a href='../R/136.html' title='Multiple referred from 2 places.'>delbps</a>(<a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>)
<a id='L62' name='L62'></a>  62 <em class='brace'>{</em>
<a id='L63' name='L63'></a>  63     <a href='../S/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L64' name='L64'></a>  64     <a href='../S/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/183.html' title='Multiple used in 17 places.'>q</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L65' name='L65'></a>  65     <strong class='reserved'>unsigned</strong> <a href='../Y/113.html' title='Multiple used in 19 places.'>h</a> = 0;
<a id='L66' name='L66'></a>  66     <a href='../Y/25.html' title='Multiple used in 56 places.'>bool</a> <a href='../Y/190.html' title='Multiple used in 8 places.'>res</a> = <a href='../Y/93.html' title='Multiple used in 58 places.'>false</a>;
<a id='L67' name='L67'></a>  67 
<a id='L68' name='L68'></a>  68     <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/113.html' title='Multiple used in 19 places.'>h</a> = <a href='../S/41909.html#L17' title='Defined at 17 in src/monitor.c.'>adrhash</a>(<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>)];
<a id='L69' name='L69'></a>  69     <strong class='reserved'>if</strong>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L70' name='L70'></a>  70         <strong class='reserved'>if</strong>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a> == <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>) <em class='brace'>{</em>
<a id='L71' name='L71'></a>  71             <strong class='reserved'>if</strong>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a> == <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L72' name='L72'></a>  72                 <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/113.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/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/113.html' title='Multiple used in 19 places.'>h</a>] = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a>;
<a id='L75' name='L75'></a>  75                 <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>);
<a id='L76' name='L76'></a>  76             <em class='brace'>}</em>
<a id='L77' name='L77'></a>  77             <a href='../Y/190.html' title='Multiple used in 8 places.'>res</a> = <a href='../Y/235.html' title='Multiple used in 89 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/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>; <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a>) <em class='brace'>{</em>
<a id='L80' name='L80'></a>  80                 <a href='../Y/183.html' title='Multiple used in 17 places.'>q</a> = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a>;
<a id='L81' name='L81'></a>  81                 <strong class='reserved'>if</strong>(<a href='../Y/183.html' title='Multiple used in 17 places.'>q</a>-&gt;<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a> == <a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>) <em class='brace'>{</em>
<a id='L82' name='L82'></a>  82                     <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a> = <a href='../Y/183.html' title='Multiple used in 17 places.'>q</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a>;
<a id='L83' name='L83'></a>  83                     <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/183.html' title='Multiple used in 17 places.'>q</a>);
<a id='L84' name='L84'></a>  84                     <a href='../Y/190.html' title='Multiple used in 8 places.'>res</a> = <a href='../Y/235.html' title='Multiple used in 89 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/190.html' title='Multiple used in 8 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/41909.html#L206' title='Referred from 206 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/67.html' title='Multiple used in 30 places.'>cnt</a> = 0;
<a id='L96' name='L96'></a>  96     <a href='../S/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L97' name='L97'></a>  97 
<a id='L98' name='L98'></a>  98     <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 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/116.html' title='Multiple used in 210 places.'>i</a> = 0; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> &lt; <a href='../S/41479.html#L46' title='Defined at 46 in include/monitor.h.'>BPSTABSIZE</a>; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>++) <em class='brace'>{</em>
<a id='L100' name='L100'></a> 100         <strong class='reserved'>for</strong>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>]; <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>; <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a>) <em class='brace'>{</em>
<a id='L101' name='L101'></a> 101             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "#%04X\n", <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/8.html' title='Multiple used in 72 places.'>adr</a>);
<a id='L102' name='L102'></a> 102             <a href='../Y/67.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/67.html' title='Multiple used in 30 places.'>cnt</a> == 0) <em class='brace'>{</em>
<a id='L106' name='L106'></a> 106         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 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/41909.html#L123' title='Referred from 123 in src/monitor.c.'>freebpslist</a>(<a href='../S/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/115.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/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L113' name='L113'></a> 113     <a href='../S/41479.html#L40' title='Defined at 40 in include/monitor.h.'>BPSLIST</a> *<a href='../Y/183.html' title='Multiple used in 17 places.'>q</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L114' name='L114'></a> 114     <strong class='reserved'>for</strong>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/115.html' title='Multiple used in 2 places.'>head</a>; <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>; <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/183.html' title='Multiple used in 17 places.'>q</a>) <em class='brace'>{</em>
<a id='L115' name='L115'></a> 115         <a href='../Y/183.html' title='Multiple used in 17 places.'>q</a> = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>-&gt;<a href='../Y/156.html' title='Multiple used in 32 places.'>next</a>;
<a id='L116' name='L116'></a> 116         <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/173.html' title='Multiple used in 131 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/150.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/116.html' title='Multiple used in 210 places.'>i</a> = 0; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> &lt; <a href='../S/41479.html#L46' title='Defined at 46 in include/monitor.h.'>BPSTABSIZE</a>; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>++) <em class='brace'>{</em>
<a id='L123' name='L123'></a> 123         <a href='../S/41909.html#L110' title='Defined at 110 in src/monitor.c.'>freebpslist</a>(<a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>]);
<a id='L124' name='L124'></a> 124         <a href='../Y/27.html' title='Multiple used in 10 places.'>bps</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>] = <a href='../Y/4.html' title='Multiple used in 211 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/41479.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a> *<a href='../R/196.html' title='Multiple referred from 2 places.'>monargstok</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/209.html' title='Multiple used in 118 places.'>str</a>)
<a id='L129' name='L129'></a> 129 <em class='brace'>{</em>
<a id='L130' name='L130'></a> 130     <a href='../S/41479.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a> *<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a> = <a href='../S/41927.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/41479.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/232.html' title='Multiple used in 9 places.'>tok</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L132' name='L132'></a> 132     <strong class='reserved'>char</strong> *<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L133' name='L133'></a> 133     <strong class='reserved'>char</strong> <a href='../Y/193.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/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> = 0;
<a id='L136' name='L136'></a> 136     <strong class='reserved'>if</strong>(!<a href='../Y/209.html' title='Multiple used in 118 places.'>str</a> || !<a href='../Y/209.html' title='Multiple used in 118 places.'>str</a>[0]) <em class='brace'>{</em>
<a id='L137' name='L137'></a> 137         <strong class='reserved'>return</strong> <a href='../Y/10.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/232.html' title='Multiple used in 9 places.'>tok</a> = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../S/41927.html#L45' title='Defined at 45 in src/cmem.c.'>strdup_chk</a>(<a href='../Y/209.html' title='Multiple used in 118 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/116.html' title='Multiple used in 210 places.'>i</a> = <a href='../Y/215.html' title='Multiple used in 6 places.'>strcspn</a>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>, " ");
<a id='L142' name='L142'></a> 142         <a href='../Y/193.html' title='Multiple used in 6 places.'>sepc</a> = <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>];
<a id='L143' name='L143'></a> 143         <a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a>)++] = <a href='../S/41927.html#L53' title='Defined at 53 in src/cmem.c.'>strndup_chk</a>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>, <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>, "args-&gt;argv[]");
<a id='L144' name='L144'></a> 144         <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> += <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> + 1;
<a id='L145' name='L145'></a> 145     <em class='brace'>}</em> <strong class='reserved'>while</strong>(<a href='../Y/193.html' title='Multiple used in 6 places.'>sepc</a> == ' ');
<a id='L146' name='L146'></a> 146     <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/232.html' title='Multiple used in 9 places.'>tok</a>);
<a id='L147' name='L147'></a> 147     <strong class='reserved'>return</strong> <a href='../Y/10.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/41479.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a> *<a href='../R/199.html' title='Multiple referred from 2 places.'>monlinetok</a>(<strong class='reserved'>const</strong> <strong class='reserved'>char</strong> *<a href='../Y/132.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/233.html' title='Multiple used in 3 places.'>tokens</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L153' name='L153'></a> 153     <strong class='reserved'>char</strong> *<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L154' name='L154'></a> 154     <strong class='reserved'>int</strong> <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> = 0;
<a id='L155' name='L155'></a> 155     <a href='../S/41479.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a> *<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a> = <a href='../Y/4.html' title='Multiple used in 211 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/132.html' title='Multiple used in 41 places.'>line</a>[0] || <a href='../Y/132.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 211 places.'>NULL</a>;
<a id='L159' name='L159'></a> 159     <em class='brace'>}</em>
<a id='L160' name='L160'></a> 160     <a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> = <a href='../Y/233.html' title='Multiple used in 3 places.'>tokens</a> = <a href='../S/41927.html#L45' title='Defined at 45 in src/cmem.c.'>strdup_chk</a>(<a href='../Y/132.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/41927.html#L75' title='Defined at 75 in src/cmem.c.'>strip_casl2_comment</a>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>);
<a id='L163' name='L163'></a> 163     <em class='comment'>/* 文字列末尾の改行と空白を削除 */</em>
<a id='L164' name='L164'></a> 164     <a href='../S/41927.html#L68' title='Defined at 68 in src/cmem.c.'>strip_end</a>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>);
<a id='L165' name='L165'></a> 165 
<a id='L166' name='L166'></a> 166     <a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a> = <a href='../S/41927.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/41479.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/116.html' title='Multiple used in 210 places.'>i</a> = <a href='../Y/215.html' title='Multiple used in 6 places.'>strcspn</a>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>, " \t\n");
<a id='L169' name='L169'></a> 169     <a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/58.html' title='Multiple used in 90 places.'>cmd</a> = <a href='../S/41927.html#L53' title='Defined at 53 in src/cmem.c.'>strndup_chk</a>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>, <a href='../Y/116.html' title='Multiple used in 210 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/173.html' title='Multiple used in 131 places.'>p</a> += <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>;
<a id='L172' name='L172'></a> 172     <strong class='reserved'>while</strong>(*<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> == ' ' || *<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a> == '\t') <em class='brace'>{</em>
<a id='L173' name='L173'></a> 173         <a href='../Y/173.html' title='Multiple used in 131 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/215.html' title='Multiple used in 6 places.'>strcspn</a>(<a href='../Y/173.html' title='Multiple used in 131 places.'>p</a>, "\n") &gt; 0) <em class='brace'>{</em>
<a id='L177' name='L177'></a> 177         <a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a> = <a href='../S/41909.html#L128' title='Defined at 128 in src/monitor.c.'>monargstok</a>(<a href='../Y/173.html' title='Multiple used in 131 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/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a> = <a href='../S/41927.html#L23' title='Defined at 23 in src/cmem.c.'>malloc_chk</a>(<strong class='reserved'>sizeof</strong>(<a href='../S/41479.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a>), "moncmdl.args");
<a id='L180' name='L180'></a> 180         <a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 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/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/233.html' title='Multiple used in 3 places.'>tokens</a>);
<a id='L183' name='L183'></a> 183     <strong class='reserved'>return</strong> <a href='../Y/150.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/25.html' title='Multiple used in 56 places.'>bool</a> <a href='../R/225.html' title='Multiple referred from 24 places.'>stracmp</a>(<strong class='reserved'>char</strong> *<a href='../Y/210.html' title='Multiple used in 3 places.'>str1</a>, <strong class='reserved'>int</strong> <a href='../Y/211.html' title='Multiple used in 2 places.'>str2c</a>, <strong class='reserved'>char</strong> *<a href='../Y/212.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/116.html' title='Multiple used in 210 places.'>i</a>;
<a id='L189' name='L189'></a> 189     <strong class='reserved'>if</strong>(<a href='../Y/210.html' title='Multiple used in 3 places.'>str1</a> == <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L190' name='L190'></a> 190         <strong class='reserved'>return</strong> <a href='../Y/93.html' title='Multiple used in 58 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/116.html' title='Multiple used in 210 places.'>i</a> = 0; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> &lt; <a href='../Y/211.html' title='Multiple used in 2 places.'>str2c</a>; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>++) <em class='brace'>{</em>
<a id='L193' name='L193'></a> 193         <strong class='reserved'>if</strong>(<a href='../Y/213.html' title='Multiple used in 6 places.'>strcmp</a>(<a href='../Y/210.html' title='Multiple used in 3 places.'>str1</a>, <a href='../Y/212.html' title='Multiple used in 2 places.'>str2v</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>]) == 0) <em class='brace'>{</em>
<a id='L194' name='L194'></a> 194             <strong class='reserved'>return</strong> <a href='../Y/235.html' title='Multiple used in 89 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/93.html' title='Multiple used in 58 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='../S/41909.html#L289' title='Referred from 289 in src/monitor.c.'>mon_break</a>(<strong class='reserved'>int</strong> <a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a>, <strong class='reserved'>char</strong> *<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[])
<a id='L201' name='L201'></a> 201 <em class='brace'>{</em>
<a id='L202' name='L202'></a> 202     <a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/242.html' title='Multiple used in 110 places.'>w</a>;
<a id='L203' name='L203'></a> 203     <strong class='reserved'>int</strong> <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> = 0;
<a id='L204' name='L204'></a> 204     <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 68 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='L205' name='L205'></a> 205         <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>++;
<a id='L206' name='L206'></a> 206         <a href='../S/41909.html#L93' title='Defined at 93 in src/monitor.c.'>listbps</a>();
<a id='L207' name='L207'></a> 207     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 68 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='L208' name='L208'></a> 208         <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>++;
<a id='L209' name='L209'></a> 209         <a href='../S/41909.html#L120' title='Defined at 120 in src/monitor.c.'>freebps</a>();
<a id='L210' name='L210'></a> 210         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "All breakpoints are deleted.\n");
<a id='L211' name='L211'></a> 211     <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L212' name='L212'></a> 212         <strong class='reserved'>if</strong>(<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; 1) <em class='brace'>{</em>
<a id='L213' name='L213'></a> 213             <strong class='reserved'>if</strong>((<a href='../Y/242.html' title='Multiple used in 110 places.'>w</a> = <a href='../S/41924.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[1])) == 0x0) <em class='brace'>{</em>
<a id='L214' name='L214'></a> 214                 <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/204.html' title='Multiple used in 30 places.'>stderr</a>, "%s: address error\n", <a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[1]);
<a id='L215' name='L215'></a> 215             <em class='brace'>}</em>
<a id='L216' name='L216'></a> 216         <em class='brace'>}</em>
<a id='L217' name='L217'></a> 217         <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 68 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='L218' name='L218'></a> 218             <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> += 2;
<a id='L219' name='L219'></a> 219             <strong class='reserved'>if</strong>(<a href='../S/41909.html#L41' title='Defined at 41 in src/monitor.c.'>addbps</a>(<a href='../Y/242.html' title='Multiple used in 110 places.'>w</a>) == <a href='../Y/235.html' title='Multiple used in 89 places.'>true</a>) <em class='brace'>{</em>
<a id='L220' name='L220'></a> 220                 <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "#%04X: breakpoint added\n", <a href='../Y/242.html' title='Multiple used in 110 places.'>w</a>);
<a id='L221' name='L221'></a> 221             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L222' name='L222'></a> 222                 <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "No breakpoint added\n");
<a id='L223' name='L223'></a> 223             <em class='brace'>}</em>
<a id='L224' name='L224'></a> 224         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 68 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='L225' name='L225'></a> 225             <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> += 2;
<a id='L226' name='L226'></a> 226             <strong class='reserved'>if</strong>(<a href='../S/41909.html#L61' title='Defined at 61 in src/monitor.c.'>delbps</a>(<a href='../Y/242.html' title='Multiple used in 110 places.'>w</a>) == <a href='../Y/235.html' title='Multiple used in 89 places.'>true</a>) <em class='brace'>{</em>
<a id='L227' name='L227'></a> 227                 <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "#%04X: breakpoint deleted\n", <a href='../Y/242.html' title='Multiple used in 110 places.'>w</a>);
<a id='L228' name='L228'></a> 228             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L229' name='L229'></a> 229                 <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "No breakpoint deleted\n");
<a id='L230' name='L230'></a> 230             <em class='brace'>}</em>
<a id='L231' name='L231'></a> 231         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 68 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='L232' name='L232'></a> 232             <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>++;
<a id='L233' name='L233'></a> 233             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "breakpoint manipulate:\n");
<a id='L234' name='L234'></a> 234             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "    b[reak] a[dd] &lt;address&gt;\n");
<a id='L235' name='L235'></a> 235             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "    b[reak] d[el] &lt;address&gt;\n");
<a id='L236' name='L236'></a> 236             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "    b[reak] l[ist]\n");
<a id='L237' name='L237'></a> 237             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "    b[reak] r[eset]\n");
<a id='L238' name='L238'></a> 238         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L239' name='L239'></a> 239             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/204.html' title='Multiple used in 30 places.'>stderr</a>, "%s: Not breakpoint manipulate command. see `b ?'.\n", <a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[0]);
<a id='L240' name='L240'></a> 240         <em class='brace'>}</em>
<a id='L241' name='L241'></a> 241         <strong class='reserved'>if</strong>(<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>) <em class='brace'>{</em>
<a id='L242' name='L242'></a> 242             <a href='../S/41939.html#L92' title='Defined at 92 in src/cerr.c.'>warn_ignore_arg</a>(<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> - <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>, <a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a> + <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>);
<a id='L243' name='L243'></a> 243         <em class='brace'>}</em>
<a id='L244' name='L244'></a> 244     <em class='brace'>}</em>
<a id='L245' name='L245'></a> 245 <em class='brace'>}</em>
<a id='L246' name='L246'></a> 246 
<a id='L247' name='L247'></a> 247 <strong class='reserved'>void</strong> <a href='../S/41909.html#L294' title='Referred from 294 in src/monitor.c.'>mon_dump</a>(<strong class='reserved'>int</strong> <a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a>, <strong class='reserved'>char</strong> *<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[])
<a id='L248' name='L248'></a> 248 <em class='brace'>{</em>
<a id='L249' name='L249'></a> 249     <strong class='reserved'>int</strong> <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> = 0;
<a id='L250' name='L250'></a> 250     <a href='../S/41484.html#L9' title='Defined at 9 in include/word.h.'>WORD</a> <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_start</a> = 0, <a href='../Y/82.html' title='Multiple used in 8 places.'>dump_end</a> = 0x40;
<a id='L251' name='L251'></a> 251     <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 68 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='L252' name='L252'></a> 252         <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/81.html' title='Multiple used in 9 places.'>dump</a> = <a href='../Y/235.html' title='Multiple used in 89 places.'>true</a>;
<a id='L253' name='L253'></a> 253     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/11.html' title='Multiple used in 68 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='L254' name='L254'></a> 254         <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/81.html' title='Multiple used in 9 places.'>dump</a> = <a href='../Y/93.html' title='Multiple used in 58 places.'>false</a>;
<a id='L255' name='L255'></a> 255     <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L256' name='L256'></a> 256         <strong class='reserved'>if</strong>(<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>) <em class='brace'>{</em>
<a id='L257' name='L257'></a> 257             <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_start</a> = <a href='../S/41924.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>++]);
<a id='L258' name='L258'></a> 258             <strong class='reserved'>if</strong>(<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>) <em class='brace'>{</em>
<a id='L259' name='L259'></a> 259                 <strong class='reserved'>if</strong>(<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>][0] =='+') <em class='brace'>{</em>
<a id='L260' name='L260'></a> 260                     <a href='../Y/82.html' title='Multiple used in 8 places.'>dump_end</a> = <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_start</a> + <a href='../S/41924.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>] + 1);
<a id='L261' name='L261'></a> 261                 <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L262' name='L262'></a> 262                     <a href='../Y/82.html' title='Multiple used in 8 places.'>dump_end</a> = <a href='../S/41924.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>]) + 1;
<a id='L263' name='L263'></a> 263                 <em class='brace'>}</em>
<a id='L264' name='L264'></a> 264             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L265' name='L265'></a> 265                 <a href='../Y/82.html' title='Multiple used in 8 places.'>dump_end</a> += <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_start</a>;
<a id='L266' name='L266'></a> 266             <em class='brace'>}</em>
<a id='L267' name='L267'></a> 267         <em class='brace'>}</em>
<a id='L268' name='L268'></a> 268         <a href='../S/41935.html#L6' title='Defined at 6 in src/dump.c.'>dumpmemory</a>(<a href='../Y/83.html' title='Multiple used in 8 places.'>dump_start</a>, <a href='../Y/82.html' title='Multiple used in 8 places.'>dump_end</a>);
<a id='L269' name='L269'></a> 269         <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/83.html' title='Multiple used in 8 places.'>dump_start</a> = <a href='../Y/83.html' title='Multiple used in 8 places.'>dump_start</a>;
<a id='L270' name='L270'></a> 270         <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/82.html' title='Multiple used in 8 places.'>dump_end</a> = <a href='../Y/82.html' title='Multiple used in 8 places.'>dump_end</a>;
<a id='L271' name='L271'></a> 271     <em class='brace'>}</em>
<a id='L272' name='L272'></a> 272     <strong class='reserved'>if</strong>(<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; ++<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>) <em class='brace'>{</em>
<a id='L273' name='L273'></a> 273         <a href='../S/41939.html#L92' title='Defined at 92 in src/cerr.c.'>warn_ignore_arg</a>(<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> - <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>, <a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a> + <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>);
<a id='L274' name='L274'></a> 274     <em class='brace'>}</em>
<a id='L275' name='L275'></a> 275 <em class='brace'>}</em>
<a id='L276' name='L276'></a> 276 
<a id='L277' name='L277'></a> 277 <a href='../S/41479.html#L57' title='Defined at 57 in include/monitor.h.'>MONCMDTYPE</a> <a href='../R/198.html' title='Multiple referred from 2 places.'>monitorcmd</a>(<strong class='reserved'>char</strong> *<a href='../Y/58.html' title='Multiple used in 90 places.'>cmd</a>, <a href='../S/41479.html#L24' title='Defined at 24 in include/monitor.h.'>MONARGS</a> *<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>)
<a id='L278' name='L278'></a> 278 <em class='brace'>{</em>
<a id='L279' name='L279'></a> 279     <a href='../S/41479.html#L57' title='Defined at 57 in include/monitor.h.'>MONCMDTYPE</a> <a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> = <a href='../S/41479.html#L54' title='Defined at 54 in include/monitor.h.'>MONREPEAT</a>;
<a id='L280' name='L280'></a> 280     <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L281' name='L281'></a> 281         <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> == 0) <em class='brace'>{</em>
<a id='L282' name='L282'></a> 282             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/204.html' title='Multiple used in 30 places.'>stderr</a>, "Error: Input file name.\n");
<a id='L283' name='L283'></a> 283         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> == 1) <em class='brace'>{</em>
<a id='L284' name='L284'></a> 284             <a href='../S/41932.html#L739' title='Defined at 739 in src/assemble.c.'>assemble</a>(1, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em><a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[0]<em class='brace'>}</em>, 0);
<a id='L285' name='L285'></a> 285         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L286' name='L286'></a> 286             <a href='../S/41932.html#L739' title='Defined at 739 in src/assemble.c.'>assemble</a>(1, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em><a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[0]<em class='brace'>}</em>, <a href='../S/41924.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[1]));
<a id='L287' name='L287'></a> 287         <em class='brace'>}</em>
<a id='L288' name='L288'></a> 288     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L289' name='L289'></a> 289         <a href='../S/41909.html#L200' title='Defined at 200 in src/monitor.c.'>mon_break</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a>, <a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>);
<a id='L290' name='L290'></a> 290     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L291' name='L291'></a> 291         <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/207.html' title='Multiple used in 4 places.'>step</a> = <a href='../Y/93.html' title='Multiple used in 58 places.'>false</a>;
<a id='L292' name='L292'></a> 292         <a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> = <a href='../S/41479.html#L55' title='Defined at 55 in include/monitor.h.'>MONNEXT</a>;
<a id='L293' name='L293'></a> 293     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L294' name='L294'></a> 294         <a href='../S/41909.html#L247' title='Defined at 247 in src/monitor.c.'>mon_dump</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a>, <a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>);
<a id='L295' name='L295'></a> 295     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L296' name='L296'></a> 296         <a href='../Y/90.html' title='Multiple used in 33 places.'>execptr</a>-&gt;<a href='../Y/85.html' title='Multiple used in 29 places.'>end</a> = <a href='../S/41943.html#L20' title='Defined at 20 in src/load.c.'>loadassemble</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[0], <a href='../S/41924.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[1]));
<a id='L297' name='L297'></a> 297     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L298' name='L298'></a> 298         <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/207.html' title='Multiple used in 4 places.'>step</a> = <a href='../Y/235.html' title='Multiple used in 89 places.'>true</a>;
<a id='L299' name='L299'></a> 299         <a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> = <a href='../S/41479.html#L55' title='Defined at 55 in include/monitor.h.'>MONNEXT</a>;
<a id='L300' name='L300'></a> 300     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L301' name='L301'></a> 301         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "Quit: COMET II monitor\n");
<a id='L302' name='L302'></a> 302         <a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> = <a href='../S/41479.html#L56' title='Defined at 56 in include/monitor.h.'>MONQUIT</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/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L304' name='L304'></a> 304         <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; 0 &amp;&amp; <a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 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='L305' name='L305'></a> 305             <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/191.html' title='Multiple used in 12 places.'>reverse</a> = <a href='../Y/235.html' title='Multiple used in 89 places.'>true</a>;
<a id='L306' name='L306'></a> 306         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; 0 &amp;&amp; <a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"n", "noauto"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L307' name='L307'></a> 307             <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/191.html' title='Multiple used in 12 places.'>reverse</a> = <a href='../Y/93.html' title='Multiple used in 58 places.'>false</a>;
<a id='L308' name='L308'></a> 308         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> == 2) <em class='brace'>{</em>
<a id='L309' name='L309'></a> 309             <a href='../S/41912.html#L169' title='Defined at 169 in src/disassemble.c.'>disassemble_memory</a>(<a href='../Y/223.html' title='Multiple used in 242 places.'>sys</a>-&gt;<a href='../Y/145.html' title='Multiple used in 69 places.'>memory</a>, <a href='../S/41924.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[0]), <a href='../S/41924.html#L82' title='Defined at 82 in src/word.c.'>nh2word</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[1]));
<a id='L310' name='L310'></a> 310         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L311' name='L311'></a> 311             <a href='../S/41912.html#L169' title='Defined at 169 in src/disassemble.c.'>disassemble_memory</a>(<a href='../Y/223.html' title='Multiple used in 242 places.'>sys</a>-&gt;<a href='../Y/145.html' title='Multiple used in 69 places.'>memory</a>, <a href='../Y/90.html' title='Multiple used in 33 places.'>execptr</a>-&gt;<a href='../Y/201.html' title='Multiple used in 21 places.'>start</a>, (<a href='../Y/90.html' title='Multiple used in 33 places.'>execptr</a>-&gt;<a href='../Y/85.html' title='Multiple used in 29 places.'>end</a>)-1);
<a id='L312' name='L312'></a> 312         <em class='brace'>}</em>
<a id='L313' name='L313'></a> 313     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 places.'>cmd</a>, 1, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"reset"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L314' name='L314'></a> 314         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "Reset COMET II CPU.\n");
<a id='L315' name='L315'></a> 315         <a href='../S/41945.html#L371' title='Defined at 371 in src/struct.c.'>comet2_reset</a>();     <em class='comment'>/* COMET II仮想マシンのCPUのリセット */</em>
<a id='L316' name='L316'></a> 316     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 places.'>cmd</a>, 1, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"resetall"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L317' name='L317'></a> 317         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "Reset COMET II CPU and memory.\n");
<a id='L318' name='L318'></a> 318         <a href='../S/41945.html#L384' title='Defined at 384 in src/struct.c.'>comet2_resetall</a>();     <em class='comment'>/* COMET II仮想マシンのCPUとメモリのリセット */</em>
<a id='L319' name='L319'></a> 319     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 places.'>cmd</a>, 4, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"t", "trace", "T", "tracelogical"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L320' name='L320'></a> 320         <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L321' name='L321'></a> 321             <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/136.html' title='Multiple used in 7 places.'>logical</a> = <a href='../Y/93.html' title='Multiple used in 58 places.'>false</a>;
<a id='L322' name='L322'></a> 322         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L323' name='L323'></a> 323             <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/136.html' title='Multiple used in 7 places.'>logical</a> = <a href='../Y/235.html' title='Multiple used in 89 places.'>true</a>;
<a id='L324' name='L324'></a> 324         <em class='brace'>}</em>
<a id='L325' name='L325'></a> 325         <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; 0 &amp;&amp; <a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 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='L326' name='L326'></a> 326             <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/234.html' title='Multiple used in 12 places.'>trace</a> = <a href='../Y/235.html' title='Multiple used in 89 places.'>true</a>;
<a id='L327' name='L327'></a> 327         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a> &gt; 0 &amp;&amp; <a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[0], 2, (<strong class='reserved'>char</strong>* [])<em class='brace'>{</em>"n", "noauto"<em class='brace'>}</em>)) <em class='brace'>{</em>
<a id='L328' name='L328'></a> 328             <a href='../Y/89.html' title='Multiple used in 45 places.'>execmode</a>.<a href='../Y/234.html' title='Multiple used in 12 places.'>trace</a> = <a href='../Y/93.html' title='Multiple used in 58 places.'>false</a>;
<a id='L329' name='L329'></a> 329         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L330' name='L330'></a> 330             <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "#%04X: Register::::\n", <a href='../Y/223.html' title='Multiple used in 242 places.'>sys</a>-&gt;<a href='../Y/76.html' title='Multiple used in 219 places.'>cpu</a>-&gt;<a href='../Y/176.html' title='Multiple used in 110 places.'>pr</a>);
<a id='L331' name='L331'></a> 331             <a href='../S/41935.html#L40' title='Defined at 40 in src/dump.c.'>dspregister</a>();
<a id='L332' name='L332'></a> 332         <em class='brace'>}</em>
<a id='L333' name='L333'></a> 333     <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>(<a href='../S/41909.html#L186' title='Defined at 186 in src/monitor.c.'>stracmp</a>(<a href='../Y/58.html' title='Multiple used in 90 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='L334' name='L334'></a> 334         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "!&lt;system command&gt; -- Run a system command.\n");
<a id='L335' name='L335'></a> 335         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "b[reak] -- Manipulate Breakpoints. See details, `b ?'.\n");
<a id='L336' name='L336'></a> 336         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "c[ontinue] -- Continue running your program.\n");
<a id='L337' name='L337'></a> 337         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "d[ump] -- Display memory dump. `d[ump] a[uto]/n[oauto]' set auto/noauto display.\n");
<a id='L338' name='L338'></a> 338         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 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='L339' name='L339'></a> 339         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "n[ext] -- Go next instruction.\n");
<a id='L340' name='L340'></a> 340         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "q[uit] -- Quit running your program.\n");
<a id='L341' name='L341'></a> 341         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "reset -- Reset COMET II CPU.\n");
<a id='L342' name='L342'></a> 342         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "resetall -- Reset COMET II CPU and memory.\n");
<a id='L343' name='L343'></a> 343         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "r[everse] -- Disassemble memory. `r[everse] &lt;start address&gt; &lt;end address&gt;'. `r[everse] a[uto]/n[oauto]' set auto/noauto display.\n");
<a id='L344' name='L344'></a> 344         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 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='L345' name='L345'></a> 345         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "t[race] -- Display CPU register. `t[race] a[uto]/n[oauto]' set auto/noauto display. \n");
<a id='L346' name='L346'></a> 346         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "T[race] -- Display CPU register as logical value. `t[race] a[uto]/n[oauto]' set auto/noauto display.\n");
<a id='L347' name='L347'></a> 347         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "?/h[elp] -- Display this help.\n");
<a id='L348' name='L348'></a> 348     <em class='brace'>}</em>
<a id='L349' name='L349'></a> 349     <strong class='reserved'>return</strong> <a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a>;
<a id='L350' name='L350'></a> 350 <em class='brace'>}</em>
<a id='L351' name='L351'></a> 351 
<a id='L352' name='L352'></a> 352 <strong class='reserved'>void</strong> <a href='../S/41909.html#L425' title='Referred from 425 in src/monitor.c.'>free_moncmdline</a>(<a href='../S/41479.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a> *<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>)
<a id='L353' name='L353'></a> 353 <em class='brace'>{</em>
<a id='L354' name='L354'></a> 354     <strong class='reserved'>int</strong> <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>;
<a id='L355' name='L355'></a> 355     <a href='../Y/21.html' title='Multiple used in 24 places.'>assert</a>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>);
<a id='L356' name='L356'></a> 356     <strong class='reserved'>if</strong>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L357' name='L357'></a> 357         <strong class='reserved'>for</strong>(<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> = 0;  <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a> &lt; <a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/9.html' title='Multiple used in 41 places.'>argc</a>; <a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>++) <em class='brace'>{</em>
<a id='L358' name='L358'></a> 358             <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>-&gt;<a href='../Y/11.html' title='Multiple used in 68 places.'>argv</a>[<a href='../Y/116.html' title='Multiple used in 210 places.'>i</a>]);
<a id='L359' name='L359'></a> 359         <em class='brace'>}</em>
<a id='L360' name='L360'></a> 360         <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>);
<a id='L361' name='L361'></a> 361     <em class='brace'>}</em>
<a id='L362' name='L362'></a> 362     <strong class='reserved'>if</strong>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/58.html' title='Multiple used in 90 places.'>cmd</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L363' name='L363'></a> 363         <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/58.html' title='Multiple used in 90 places.'>cmd</a>);
<a id='L364' name='L364'></a> 364     <em class='brace'>}</em>
<a id='L365' name='L365'></a> 365     <strong class='reserved'>if</strong>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a> != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L366' name='L366'></a> 366         <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>);
<a id='L367' name='L367'></a> 367     <em class='brace'>}</em>
<a id='L368' name='L368'></a> 368 <em class='brace'>}</em>
<a id='L369' name='L369'></a> 369 
<a id='L370' name='L370'></a> 370 <strong class='reserved'>int</strong> <a href='../R/200.html' title='Multiple referred from 3 places.'>monquit</a>()
<a id='L371' name='L371'></a> 371 <em class='brace'>{</em>
<a id='L372' name='L372'></a> 372     <strong class='reserved'>int</strong> <a href='../Y/203.html' title='Multiple used in 32 places.'>stat</a> = 0;
<a id='L373' name='L373'></a> 373 
<a id='L374' name='L374'></a> 374     <a href='../S/41945.html#L399' title='Defined at 399 in src/struct.c.'>comet2_shutdown</a>();
<a id='L375' name='L375'></a> 375     <a href='../S/41909.html#L120' title='Defined at 120 in src/monitor.c.'>freebps</a>();
<a id='L376' name='L376'></a> 376     <a href='../S/41945.html#L146' title='Defined at 146 in src/struct.c.'>free_cmdtable</a>(<a href='../S/41477.html#L64' title='Defined at 64 in include/struct.h.'>HASH_CMDTYPE</a>);
<a id='L377' name='L377'></a> 377     <a href='../S/41945.html#L146' title='Defined at 146 in src/struct.c.'>free_cmdtable</a>(<a href='../S/41477.html#L65' title='Defined at 65 in include/struct.h.'>HASH_CODE</a>);
<a id='L378' name='L378'></a> 378 
<a id='L379' name='L379'></a> 379     <strong class='reserved'>if</strong>(<a href='../Y/32.html' title='Multiple used in 62 places.'>cerr</a>-&gt;<a href='../Y/159.html' title='Multiple used in 57 places.'>num</a> &gt; 0) <em class='brace'>{</em>
<a id='L380' name='L380'></a> 380         <a href='../Y/203.html' title='Multiple used in 32 places.'>stat</a> = 1;
<a id='L381' name='L381'></a> 381     <em class='brace'>}</em>
<a id='L382' name='L382'></a> 382     <a href='../S/41939.html#L76' title='Defined at 76 in src/cerr.c.'>freecerr</a>();
<a id='L383' name='L383'></a> 383     <strong class='reserved'>return</strong> <a href='../Y/203.html' title='Multiple used in 32 places.'>stat</a>;
<a id='L384' name='L384'></a> 384 <em class='brace'>}</em>
<a id='L385' name='L385'></a> 385 
<a id='L386' name='L386'></a> 386 <strong class='reserved'>void</strong> <a href='../R/197.html' title='Multiple referred from 8 places.'>monitor</a>()
<a id='L387' name='L387'></a> 387 <em class='brace'>{</em>
<a id='L388' name='L388'></a> 388     <strong class='reserved'>static</strong> <strong class='reserved'>char</strong> *<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L389' name='L389'></a> 389     <strong class='reserved'>static</strong> <strong class='reserved'>char</strong> *<a href='../Y/130.html' title='Multiple used in 7 places.'>last_buf</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L390' name='L390'></a> 390     <a href='../S/41479.html#L32' title='Defined at 32 in include/monitor.h.'>MONCMDLINE</a> *<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a> = <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>;
<a id='L391' name='L391'></a> 391     <a href='../S/41479.html#L57' title='Defined at 57 in include/monitor.h.'>MONCMDTYPE</a> <a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> = <a href='../S/41479.html#L54' title='Defined at 54 in include/monitor.h.'>MONREPEAT</a>;
<a id='L392' name='L392'></a> 392 
<a id='L393' name='L393'></a> 393     <strong class='reserved'>do</strong> <em class='brace'>{</em>
<a id='L394' name='L394'></a> 394         <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>);
<a id='L395' name='L395'></a> 395         <a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a> = readline(<a href='../Y/151.html' title='Multiple used in 2 places.'>monitor_prompt</a>);
<a id='L396' name='L396'></a> 396         <em class='comment'>/* EOFの処理 */</em>
<a id='L397' name='L397'></a> 397         <strong class='reserved'>if</strong>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a> == <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L398' name='L398'></a> 398             <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/130.html' title='Multiple used in 7 places.'>last_buf</a>);
<a id='L399' name='L399'></a> 399             <a href='../Y/91.html' title='Multiple used in 9 places.'>exit</a>(<a href='../S/41909.html#L370' title='Defined at 370 in src/monitor.c.'>monquit</a>());
<a id='L400' name='L400'></a> 400         <em class='brace'>}</em>
<a id='L401' name='L401'></a> 401         <em class='comment'>/* 空行(Enterだけ)の場合は、前回のコマンドをリピート */</em>
<a id='L402' name='L402'></a> 402         <strong class='reserved'>if</strong>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>[0] == '\0') <em class='brace'>{</em>
<a id='L403' name='L403'></a> 403             <strong class='reserved'>if</strong>(<a href='../Y/130.html' title='Multiple used in 7 places.'>last_buf</a> == <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L404' name='L404'></a> 404                 <em class='comment'>/* 前回実行したコマンドがなければ何もしない */</em>
<a id='L405' name='L405'></a> 405                 <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "&gt;\n");
<a id='L406' name='L406'></a> 406                 <strong class='reserved'>continue</strong>;
<a id='L407' name='L407'></a> 407             <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L408' name='L408'></a> 408                 <a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a> = <a href='../S/41927.html#L45' title='Defined at 45 in src/cmem.c.'>strdup_chk</a>(<a href='../Y/130.html' title='Multiple used in 7 places.'>last_buf</a>, "monitor.buf_repeat");
<a id='L409' name='L409'></a> 409                 <a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> = <a href='../S/41479.html#L54' title='Defined at 54 in include/monitor.h.'>MONREPEAT</a>;
<a id='L410' name='L410'></a> 410             <em class='brace'>}</em>
<a id='L411' name='L411'></a> 411         <em class='brace'>}</em> <strong class='reserved'>else</strong> <em class='brace'>{</em>
<a id='L412' name='L412'></a> 412             <a href='../S/41927.html#L68' title='Defined at 68 in src/cmem.c.'>strip_end</a>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>);        <em class='comment'>/* 文字列末尾の改行と空白を削除 */</em>
<a id='L413' name='L413'></a> 413             <em class='comment'>/* 履歴(ヒストリ)に追加 */</em>
<a id='L414' name='L414'></a> 414             add_history(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>);
<a id='L415' name='L415'></a> 415             <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/130.html' title='Multiple used in 7 places.'>last_buf</a>);
<a id='L416' name='L416'></a> 416             <a href='../Y/130.html' title='Multiple used in 7 places.'>last_buf</a> = <a href='../S/41927.html#L45' title='Defined at 45 in src/cmem.c.'>strdup_chk</a>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>, "monitor.last_buf");
<a id='L417' name='L417'></a> 417         <em class='brace'>}</em>
<a id='L418' name='L418'></a> 418         <em class='comment'>/* 実行コマンドをstdout に出力。ログに残すため */</em>
<a id='L419' name='L419'></a> 419         <a href='../Y/102.html' title='Multiple used in 123 places.'>fprintf</a>(<a href='../Y/206.html' title='Multiple used in 94 places.'>stdout</a>, "&gt; %s\n", <a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>);
<a id='L420' name='L420'></a> 420 
<a id='L421' name='L421'></a> 421         <strong class='reserved'>if</strong>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>[0] == '!') <em class='brace'>{</em>
<a id='L422' name='L422'></a> 422             system(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a> + 1);
<a id='L423' name='L423'></a> 423         <em class='brace'>}</em> <strong class='reserved'>else</strong> <strong class='reserved'>if</strong>((<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a> = <a href='../S/41909.html#L150' title='Defined at 150 in src/monitor.c.'>monlinetok</a>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>)) != <a href='../Y/4.html' title='Multiple used in 211 places.'>NULL</a>) <em class='brace'>{</em>
<a id='L424' name='L424'></a> 424             <a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> = <a href='../S/41909.html#L277' title='Defined at 277 in src/monitor.c.'>monitorcmd</a>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/58.html' title='Multiple used in 90 places.'>cmd</a>, <a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>-&gt;<a href='../Y/10.html' title='Multiple used in 29 places.'>args</a>);
<a id='L425' name='L425'></a> 425             <a href='../S/41909.html#L352' title='Defined at 352 in src/monitor.c.'>free_moncmdline</a>(<a href='../Y/150.html' title='Multiple used in 21 places.'>moncmdl</a>);
<a id='L426' name='L426'></a> 426         <em class='brace'>}</em>
<a id='L427' name='L427'></a> 427         <strong class='reserved'>if</strong>(<a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> == <a href='../S/41479.html#L56' title='Defined at 56 in include/monitor.h.'>MONQUIT</a>) <em class='brace'>{</em>
<a id='L428' name='L428'></a> 428             <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>);
<a id='L429' name='L429'></a> 429             <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/130.html' title='Multiple used in 7 places.'>last_buf</a>);
<a id='L430' name='L430'></a> 430             <a href='../Y/91.html' title='Multiple used in 9 places.'>exit</a>(<a href='../S/41909.html#L370' title='Defined at 370 in src/monitor.c.'>monquit</a>());
<a id='L431' name='L431'></a> 431         <em class='brace'>}</em>
<a id='L432' name='L432'></a> 432     <em class='brace'>}</em> <strong class='reserved'>while</strong>(<a href='../Y/65.html' title='Multiple used in 25 places.'>cmdtype</a> == <a href='../S/41479.html#L54' title='Defined at 54 in include/monitor.h.'>MONREPEAT</a>);
<a id='L433' name='L433'></a> 433     <a href='../S/41483.html#L22' title='Defined at 22 in include/cmem.h.'>FREE</a>(<a href='../Y/28.html' title='Multiple used in 26 places.'>buf</a>);
<a id='L434' name='L434'></a> 434 <em class='brace'>}</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* [&lt;][&gt;]<a href='#L17'>[^]</a><a href='#L386'>[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] */