http://packages.debian.org/unstable/utils/ltrace and ptrace, besides gdb, can be useful things. I remember at least one ot two (either ptrace or ltrace) worked in the librie out of the box.
EDITED: hmm this version of ltrace will not run straightfoward in the iLiad, which has libc-2.3.3