Code example:
Code: Select all
void test1(int *arg1)
{
arg1 = 200;
return;
}
int main(int argc, char **argv)
{
int *p_var1 = (int *)malloc(sizeof(int));
test1(p_var1);
return 0;
}
Code: Select all
void test1(int *arg1)
{
arg1 = 200;
return;
}
int main(int argc, char **argv)
{
int *p_var1 = (int *)malloc(sizeof(int));
test1(p_var1);
return 0;
}
Code: Select all
DEBUG>>00000174^done,name="var3",numchild="1",value="0x2c1758",type="int *",thread-id="1",has_more="0"
DEBUG>>00000175-var-list-children "var3"
DEBUG>>00000175^done,numchild="1",children=[child={name="var3.*p_var1",exp="*p_var1",numchild="0",type="int",thread-id="1"}],has_more="0"
DEBUG>>00000176-var-evaluate-expression "var3.*p_var1"
Code: Select all
DEBUG>>00000189-var-create - @ "arg1"
DEBUG>>00000188^done,ndeleted="1"
DEBUG>>00000189^done,name="var5",numchild="1",value="0x2c1758",type="int *",thread-id="1",has_more="0"
DEBUG>>00000190-var-list-children "var5"
Code: Select all
*arg1= 200