Hey,

so I had the joy of debugging one of the perfcheck tests and noticed that
running them normally under gdb does not work (valgrind and gdb don't play
nice with each other by default). However there is a gdbserver built into
valgrind so we now have VALGRIND_GDB which if set to TRUE will start the
valgrind gdb server and wait for a connection. You can then connect to the
test from a gdb instance started with
gdb workdir/LinkTarget/Executable/cppunittester

and inside of gdb
target remote | vgdb

After that you are connected to the valgrind gdbserver and can start
debugging the test.

Regards,
Markus

P.S. In theory you can query the gdbserver for leaked memory when you run
memcheck but the last time I tried that it reported a lot of potentially
leaked memory.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to