AnsweredAssumed Answered

malloc system calls fail in S32 Design Studio

Question asked by Mohan kumar on Nov 5, 2017
Latest reply on Nov 6, 2017 by Jiri Kral

Hi,

 

I am unable to make malloc calls in the code. Can you please check it?

*************************************************

struct node   

{

    char data[5];

    struct node *next;

}*head;

 

struct node *nptr;

nptr = malloc(sizeof(struct node));

 

*************************************************

When I move mouse tooltip on nptr in above code, I see below warning.

 

/*******************

Multiple errors reported.

 

1) Failed to execute MI command:

-var-create - * nptr

Error message from debugger back end:

value has been optimized out

 

2) Unable to create variable object

 

3) Failed to execute MI command:

-var-create - * nptr

Error message from debugger back end:

value has been optimized out

*******************/

 

Thanks

Mohan

Outcomes