Skip to main content

Is it possible to add a new type definition in TRACE32 using PRACTICE commands? - Knowledgebase / PRACTICE - Lauterbach Support

Is it possible to add a new type definition in TRACE32 using PRACTICE commands?

It is not possible to add new types manually in TRACE32. As a workaround, you can declare the type inside a source file, compile it and load the resulting ELF file in TRACE32.

 Example: 

1. declare the type in a C-file:

typedef struct {
int a;
int b;
int d;
} myStruct_t;
volatile myStruct_t *dummy;

2. Compile the C-File, e.g.

 gcc typedef.c -g -o typedef.elf -nostartfiles -nodefaultlibs

3. Load the ELF file in TRACE32 using the /NoCODE and /NoCLEAR options

Data.LOAD.Elf typedef.elf /NoClear /NoCODE
Helpful Unhelpful

1 of 1 people found this page helpful

Add a comment

ID-0
To prove you are a human, please tell us the text you see in the CAPTCHA image