]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add README_DEVELOPERS to the 'make dist' tarball (since it's mentioned in
authorNicholas Nethercote <n.nethercote@gmail.com>
Sat, 9 Oct 2004 15:59:05 +0000 (15:59 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sat, 9 Oct 2004 15:59:05 +0000 (15:59 +0000)
README), and add some instructions about attaching GDB to Valgrind itself
within it.

This fixes bug 90138.

MERGE WITH STABLE

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2738

Makefile.am
README_DEVELOPERS

index 00cd05defc160fa53b65e14e777ca71381826e81..74f35a9637d179fd00f8702753f8382676b0dbd2 100644 (file)
@@ -37,6 +37,7 @@ regtest: check
 EXTRA_DIST = \
        FAQ.txt \
        ACKNOWLEDGEMENTS \
+       README_DEVELOPERS \
        README_PACKAGERS \
        README_MISSING_SYSCALL_OR_IOCTL TODO \
        valgrind.spec.in valgrind.pc.in \
index 87c03053e8766d03f02ec4379441fffe454fed53..a7fa4689c49dedddebe766804aa81ea5d8846cd8 100644 (file)
@@ -31,3 +31,19 @@ file.  Eg:
   perl tests/vg_regtest memcheck/tests/badfree.vgtest
   perl tests/vg_regtest memcheck/tests/badfree
 
+
+Debugging Valgrind with GDB
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+To debug Valgrind itself with GDB, start Valgrind like this:
+
+  valgrind --tool=none --wait-for-gdb=yes <prog>
+
+Then start gdb like this in another terminal:
+
+  gdb /usr/lib/valgrind/stage2 <pid>
+
+Where <pid> is the pid valgrind printed. Then set whatever breakpoints
+you want and do this in gdb:
+
+  jump *$eip
+