Hi Robert,

El Lunes 09 Febrero 2009ES 16:56:40 Robert Osfield escribió:
> Hi Alberto,
>
> On Mon, Feb 9, 2009 at 3:54 PM, Alberto Luaces <alua...@udc.es> wrote:
> > Did you know that you can also attach a debugger so you can inspect
> > directly every error reported by Valgrind? It is done adding
> > "--db-attach=yes" to the command-line. Maybe the error could be more
> > evident this way without having to dive into the code.
>
> Could you provide an example command line example of what you mean?
>

Yes. By issuing 

valgrind --tool=helgrind --db-attach=yes osgparticleeffects

valgrind stops on every error it reports with the question:

---- Attach to debugger ? --- [Return/N/n/Y/y/C/c]

if you answer yes, gdb is automatically attached and you can inspect thread's 
stacks. You can also quit the debugger without quitting the program and 
continue valgrind's run.

Alberto

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to