|
From: Bob R. <bo...@br...> - 2005-01-21 14:30:52
|
Hi, When valgrind alerts the user of a 'Conditional jump or move depends on uninitialised value(s)' is there any way it could tell you either - The name of the variable that is causing this to happen - The address of the data that is causing this to happen Here is an example, I am making up the function names, source file and line numbers. The best granularity I get in this example is the source file and line number. ==16717== Conditional jump or move depends on uninitialised value(s) ==16717== at 0x8D32303: func1 (foo.c:100) ==16717== by 0x8D3B7A2: func2 (foo.c:101) ==16717== by 0x8165B2A: func3 (foo.c:102) ==16717== by 0x8166C81: func4 (foo.c:103) Could I get the symbol name causing the problem? What about the address of the variable causing the problem? The reason I ask is because the if statement on the line where valgrind found the error is really complicated and it's difficult for me to determine what symbol is causing the problem. The symbol name would be most helpful, but if that could not be found, the address name would be also. At least, it would be helpful when using the 'db-attach' feature. I could look into adding this feature if it's simple, and if I could be put in the correct direction. Thanks, Bob Rossi |