|
From: Tom H. <th...@cy...> - 2005-01-21 14:51:19
|
In message <20050121143030.GA23610@white>
Bob Rossi <bo...@br...> wrote:
> 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
I believe it does try to do this if you use stabs but nobody has
written the necessary code for DWARF yet.
> - The address of the data that is causing this to happen
Once again I believe it does do this if there is one. In this case
the value is probably in a register so there is no address.
> 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.
Use VALGRIND_CHECK_READABLE on each variable to see which is causing
the problem.
Tom
--
Tom Hughes (th...@cy...)
Software Engineer, Cyberscience Corporation
http://www.cyberscience.com/
|