From 8a8dfc9d55c6045d59bed6cde4ae6e2307b335ea Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 15 Nov 2009 20:21:50 -0600 Subject: HACKING: add some notes about valgrind/gdb usage Signed-off-by: Dan McGee --- HACKING | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'HACKING') diff --git a/HACKING b/HACKING index 09e782d7..537d9a37 100644 --- a/HACKING +++ b/HACKING @@ -133,6 +133,19 @@ For pacman: #include "anythingelse.h" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +GDB and Valgrind Usage +~~~~~~~~~~~~~~~~~~~~~~ + +When using GDB or valgrind on pacman, you will want to run it on the actual +binary rather than the shell script wrapper produced by libtool. The actual +binary lives at `src/pacman/.libs/lt-pacman`, and will exist after running +`./src/pacman/pacman` at least once. + +For example, to run valgrind: + + ./src/pacman/pacman + valgrind --leak-check=full -- src/pacman/.libs/lt-pacman -Syu + ///// vim: set ts=2 sw=2 syntax=asciidoc et: ///// -- cgit v1.2.3-24-g4f1b