dbg - arg DemoThis demo passes program arguments to a CTR application for debugging purposes.
None.
None.
ctr_loadrun tool when running this demo to pass program arguments, in order to check how the program operates. You must, therefore, run the debugger from ctr_loadrun, instead of running it directly.
Use ctr_loadrun and run this demo as follows.
$ ctr_loadrun32 arg.cci -a arg1 -a arg2 --binary-argument anyfile -args arg3 arg4 arg5After 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.
CONFIDENTIAL