dbg - arg Demo

Description

This demo passes program arguments to a CTR application for debugging purposes.

Required Environment

None.

How to Use

None.

Notes

Execution Procedure

Use ctr_loadrun and run this demo as follows.

$ ctr_loadrun32 arg.cci -a arg1 -a arg2 --binary-argument anyfile -args arg3 arg4 arg5
After launching the demo, it first displays the arguments passed from ctr_loadrun, as shown below.
==== Argument sample starts.
argc = 6
argv[0] = [application]
argv[1] = [arg1]
argv[2] = [arg2]
argv[3] = [arg3]
argv[4] = [arg4]
argv[5] = [arg5]
Argument binary buffer 0x10b08b size 0xb9
00000 : 42 61 73 69 63 49 6e 66 6f 3a 0d 0a 20 20 42 61
00010 : 63 6b 75 70 4d 65 6d 6f 72 79 54 79 70 65 3a 20
00020 : 4e 6f 6e 65 0d 0a 20 20 54 69 74 6c 65 20 20 20
    
The demo then displays the program arguments configured internally for testing. There is no shutdown procedure. Stop execution in a timely manner.

Revision History

2011/12/19
Initial version.

CONFIDENTIAL