Re: detecting uninitialized values in debug builds

"Dallman, John" <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Message-ID <CF619CD2963921478D1D10019C667D1DEFAAE5B5@DEKOMMBX001.net.plm.eds.com>
> However, I've also been told that the g++ compiler will initialize all stack objects to zero when compiling for debug (the -g option).  Yet, valgrind still detects the un-init condition.

I think whoever told you that was confusing it with Microsoft Visual Studio. The default debug-build configuration for that IDE does initialise all variables.

--
John Dallman

-----------------
Siemens Industry Software Limited is a limited company registered in England and Wales.
Registered number: 3476850.
Registered office: Faraday House, Sir William Siemens Square, Frimley, Surrey, GU16 8QD.

_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.