Hi,
I am trying to do the following (valgrind 3.5.0, mac osx):
valgrind --db-attach=yes --log-file=testout.txt myprogram < input.txt
where input.txt contains the number 1
and myprogram is as follows:
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
unsigned int i;
cout << "input i" << endl;
cin >> i;
cout << "I is : " << i << endl;
}
But valgrind keeps exiting without even printing "input i"
Is there anything that I'm doing wrong?
Thanks for your help.
Regards,
Anna.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users