Re: ptrace and friends

Roger Espel Llima (espel@llaic.u-clermont1.fr)
Tue, 19 Jan 1999 19:15:45 +0100


xervavi Miquel van Smoorenburg lio ro mailing-list i linux-kernel:
> "ltrace" is probably an even better example:
>
> $ ltrace ls
> atexit(0x400064e0) = 0
> __libc_init_first(1, 0xbffffd83, 0, 0xbffffd86, 0xbffffd9e) = 0x400064e0
> atexit(0x0804d440) = 0
> setlocale(6, "") = "C"
>
> ltrace is a library tracer like strace is a system call tracer ..
> it's pretty cool.
>
> ftp://ftp.debian.org/debian/dists/unstable/main/source/utils/ltrace_*

Neat program. AFAIK ltrace uses ptrace internally, to do its job.

I once started hacking on an ltrace-equivalent that used LD_PRELOAD
instead, but never got around to finishing it. Then ltrace came around,
meaning I don't have to :)

-- 
Roger Espel Llima, espel@llaic.u-clermont1.fr
http://www.eleves.ens.fr:8080/home/espel/index.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/