问题描述:

Is there a way to locate all the functions that assign to a specific global variable ?

For example, In one .c file are all my globals :

int x;

I would like to know which functions this variable x is being assigned in:

void temp(void) {

x = 1;

}

Here x is assigned in the function temp.

相关阅读:
Top