|
From: Nicholas N. <nj...@ca...> - 2004-10-09 15:59:17
|
CVS commit by nethercote:
Add README_DEVELOPERS to the 'make dist' tarball (since it's mentioned in
README), and add some instructions about attaching GDB to Valgrind itself
within it.
This fixes bug 90138.
MERGE WITH STABLE
M +1 -0 Makefile.am 1.71
M +16 -0 README_DEVELOPERS 1.3
--- valgrind/Makefile.am #1.70:1.71
@@ -38,4 +38,5 @@
FAQ.txt \
ACKNOWLEDGEMENTS \
+ README_DEVELOPERS \
README_PACKAGERS \
README_MISSING_SYSCALL_OR_IOCTL TODO \
--- valgrind/README_DEVELOPERS #1.2:1.3
@@ -32,2 +32,18 @@
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
+
|