***************************************************************
OKAY, BEFORE YOU DO THIS, ENSURE THAT STATD IS RUNNING
(YOU'LL WANT IT STARTED AT BOOT TIME 99% OF THE TIME) 
***************************************************************
# gdb -q --exec=/sbin/rpc.statd
(gdb) shell pidof rpc.statd
30588
(gdb) attach 30588
Attaching to program: /sbin/rpc.statd, Pid 30588
Error reading attached process's symbol file.
"/usr/local/bin/": can't read symbols: Is a directory.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /lib/libnss_nisplus.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /lib/libnss_nis.so.2...done.
Reading symbols from /lib/libnss_dns.so.2...done.
Reading symbols from /lib/libresolv.so.2...done.
0x400c517e in __select () from /lib/libc.so.6
(gdb) break vsnprintf
Breakpoint 1 at 0x4006c6c4: file vsnprintf.c, line 109.
***************************************************************
AFTER YOU SET THE BREAKPOINT, DO THE FOLLOWING FROM TERM 2:
$ ./statdx2 -a 0x41414141 localhost
***************************************************************
(gdb) c
Continuing.

Breakpoint 1, 0x4006c6c4 in _IO_vsnprintf (string=0xbffff094 '\220' <repeats 200 times>..., 
    maxlen=1024, format=0x804bfc9 "gethostbyname error for %s", args=0xbffff4a4) at vsnprintf.c:109
****************************************************************
IN THE ABOVE EXAMPLE, 0xbffff094 IS THE ADDRESS YOU'LL NEED 
****************************************************************
109	vsnprintf.c: No such file or directory.
(gdb) quit
The program is running.  Quit anyway (and detach it)? (y or n) y
Detaching from program: /sbin/rpc.statd, Pid 30588
