lkml.org 
[lkml]   [1999]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ptrace and friends
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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:1.421 / U:0.744 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site