1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 4<head> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 <meta http-equiv="Content-Style-Type" content="text/css" /> 7 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 8</head> 9<body> 10 11<h1><CODE>dbg</CODE> - <CODE>arg</CODE> Demo</h1> 12 13<h2>Description</h2> 14 15<div class="section"> 16 <p>This demo passes program arguments to a CTR application for debugging purposes.</p> 17</div> 18 19<h2>Required Environment</h2> 20 21<div class="section"> 22 <p>None.</p> 23</div> 24 25<h2>How to Use</h2> 26 27<div class="section"> 28 <p>None.</p> 29</div> 30 31<h2>Notes</h2> 32 33<div class="section"> 34 <ul> 35 <li>You can use the <CODE>ctr_loadrun</CODE> tool when running this demo to pass program arguments, in order to check how the program operates. You must, therefore, run the debugger from <CODE>ctr_loadrun</CODE>, instead of running it directly. 36 </li> 37 </ul></div> 38 39<h2>Execution Procedure</h2> 40 41<div class="section"> 42 <p>Use <CODE>ctr_loadrun</CODE> and run this demo as follows.</p> 43 <pre class="code"> 44$ ctr_loadrun32 arg.cci -a arg1 -a arg2 --binary-argument anyfile -args arg3 arg4 arg5</pre> 45 46 After launching the demo, it first displays the arguments passed from <CODE>ctr_loadrun</CODE>, as shown below. 47 48 <pre class="code"> 49==== Argument sample starts. 50argc = 6 51argv[0] = [application] 52argv[1] = [arg1] 53argv[2] = [arg2] 54argv[3] = [arg3] 55argv[4] = [arg4] 56argv[5] = [arg5] 57Argument binary buffer 0x10b08b size 0xb9 5800000 : 42 61 73 69 63 49 6e 66 6f 3a 0d 0a 20 20 42 61 5900010 : 63 6b 75 70 4d 65 6d 6f 72 79 54 79 70 65 3a 20 6000020 : 4e 6f 6e 65 0d 0a 20 20 54 69 74 6c 65 20 20 20 61 </pre> 62 63 The demo then displays the program arguments configured internally for testing. 64 65 There is no shutdown procedure. Stop execution in a timely manner. 66</div> 67 68<h2>Revision History</h2> 69 70<div class="section"> 71 <dl class="history"> 72 <dt>2011/12/19</dt> 73 <dd>Initial version.</dd> 74 </dl> 75</div> 76 77 78<hr><p>CONFIDENTIAL</p></body> 79</html>