]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Port callgrind_control to vgdb
authorJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Mon, 11 Jul 2011 14:46:44 +0000 (14:46 +0000)
committerJosef Weidendorfer <Josef.Weidendorfer@gmx.de>
Mon, 11 Jul 2011 14:46:44 +0000 (14:46 +0000)
commit5eb8c478845ab65c5b25d3543887199fbaf59277
tree555a9ebdb9cc79a885078942f67db4caafb68981
parent4a3ad5c4fc1420afafe7f44f028a5d4b2c5c3857
Port callgrind_control to vgdb

Same functionality, apart from "-l" to show "long information".
This only printed the current working directory of the callgrind run,
which currently is not available any longer, but not really needed.

The port to vgdb has an important benefit:
callgrind can now be controlled by callgrind_control also when
the client program is blocked/sleeping in a system call. This was
not possible before as a command file was polled only while the
client was running.

Ubuntu by default restricts PTRACE (used by vgdb) to parent processes,
making Ubuntu show similar behavior as before: vgdb is not allowed
to attach by PTRACE when the client is blocked/sleeping, so
callgrind_control works similar to before this change on Ubuntu.

A final patch, which gets rid of command file polling, will be
submitted after Valgrind 3.7, as KCachegrind currently writes
command files directly, and needs to be changed to rely on
callgrind_control instead.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11867
callgrind/callgrind_control.in