This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hello,
I have a pointer which points to some big structure, and I need to dump the whole structure to a file using GEL script.
Let's say I have MyPtr of the type (MyStruct *) and I need to dump sizeof(MyStruct) memory pointed by MyPtr. I do not want to manually enter address or size of the dump.
Is this possible with GEL or any other method in CCS? If it is then an example will be very helpful.
Regards,
Eugene
Hi Eugene,
Please take reference from the already provided GEL files in CCS that dumps the register value.
The RegDump.GEL files can be found at ${CCS}/ccs/ccs_base/emulation/gel/${device}/${device}_DDRSS/utilities/${device}_DDRSS_RegDump.gel.
Regards,
Tushar
Hello,
I am not dumping single variable but rather memory range of sizeof(MyStruct) size located at the address pointed by MyPtr.
Reading the address from MyPtr is not a problem. The question is if it is possible to get sizeof(MyStruct) in GEL from the information that is available to the debugger in ELF file?
Eugene
Hi Eugene,
Reading the address from MyPtr is not a problem. The question is if it is possible to get sizeof(MyStruct) in GEL from the information that is available to the debugger in ELF file?
yes you could use sizeof(MyStruct) as a parameter to the GEL_MemorySave length parameter.
Thanks
ki