Currently, such usage is not supported.
But you might try to use the "gdbserver" patch . See
http://bugs.kde.org/show_bug.cgi?id=214909
This patch gives a "fully debuggable process" under valgrind (so,
continue, next, step, break, info threads, ... commands are supported).
The patch is not (yet) integrated in valgrind, so it implies the
following:
You must patch a 3.6.0 version, regenerate the Makefiles, configure,
install.
Hope this helps
Philippe
________________________________
From: Frank Chang [mailto:[email protected]]
Sent: Wednesday 9 February 2011 15:02
To: [email protected]
Subject: [Valgrind-users] Using the Valgrind debugger to step
through a C++program without multithreading
Good morning, I am trying to use the Valgrind debugger to step
through a program.
My valgrind command line is valgrind -tool memcheck
--leak-check=full --db-enable=yes ./MatchUpAcurate.exe.
I am using valgrind-3.5.0 on Centos Linux release 5.5 with gdb
version 7,0.1-23.el5_5.2.
I enter Yes when valgrind asks the question Attach to Debugger.
Then, the valgrind debugger returns with: 4428: return new
tuple2<int,A>(2, i++, p->next());
When I try to use the gdb step or continue command, valgrind
says
[New Thread 0x410fd10 (LWP 6548] Cannot find user-level thread
for LWP 6551: generic error.
When I try to use valgrind --single-step=yes debugger option on
the valgrind command-line, valgriind says Bad option aborting.
Could any valgrind users show me how to step through C++ source
code or continue through a program? Thank you.
____
This message and any files transmitted with it are legally privileged and
intended for the sole use of the individual(s) or entity to whom they are
addressed. If you are not the intended recipient, please notify the sender by
reply and delete the message and any attachments from your system. Any
unauthorised use or disclosure of the content of this message is strictly
prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on
the part of EUROCONTROL, unless it is confirmed by appropriately signed hard
copy.
Any views expressed in this message are those of the sender.------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users