|
From: Nicholas N. <nj...@ca...> - 2004-10-09 16:01:01
|
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.
MERGED FROM HEAD
M +1 -0 Makefile.am 1.69.2.1
M +16 -0 README_DEVELOPERS 1.2.2.1
--- valgrind/Makefile.am #1.69:1.69.2.1
@@ -43,4 +43,5 @@
FAQ.txt \
ACKNOWLEDGEMENTS \
+ README_DEVELOPERS \
README_PACKAGERS \
README_MISSING_SYSCALL_OR_IOCTL TODO \
--- valgrind/README_DEVELOPERS #1.2:1.2.2.1
@@ -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
+
|