mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
clarify debugging instructions
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2901
This commit is contained in:
parent
db131cacab
commit
d62aa78d9d
@ -34,7 +34,9 @@ file. Eg:
|
||||
|
||||
Debugging Valgrind with GDB
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
To debug Valgrind itself with GDB, start Valgrind like this:
|
||||
To debug stage 1 just run it under GDB in the normal way.
|
||||
|
||||
To debug Valgrind proper (stage 2) with GDB, start Valgrind like this:
|
||||
|
||||
valgrind --tool=none --wait-for-gdb=yes <prog>
|
||||
|
||||
@ -47,3 +49,7 @@ you want and do this in gdb:
|
||||
|
||||
jump *$eip
|
||||
|
||||
Code that runs in the target program such as the pthread replacement
|
||||
code or the malloc replacement code would have to be debugged as part
|
||||
of the target program, probably by attaching a debugger after it has
|
||||
started. We are not sure if this would work, however.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user