This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Find out the system calls statically?
- From: "River Wang" <jwangzju at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Sat, 16 Aug 2008 13:23:27 -0400
- Subject: Find out the system calls statically?
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=F3KyOY8gbGAlCGEpufZTy6BZWTaNNz2G0gDOTEQunvI=; b=uIdKrft+GIAZlbukEGHT32nS3WdrjkRd6yyXwPW48c8ukjWhvrPwVhx1FcLrWJE0qa ofeS1E2cF6ktV6erDs5L5LTl6+tzLjw9wTkrFP9zXC3Yy37G7d74wkXU7WQNlYncEldc G5YBu+43diWySVZPGNk1eZSPFPXuzR1Fu8zj8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=wkXe8538JnADEbRRk5AmgTP0SnR4lnMwaUXEpBPMa65Y5XBwnOkNcjK2StdL+1DlDN JOiIq5RA80iKNQlkFFh6ksk65DKT5wY4K4hjRzk++JS4+JONv+YIN8gUIM8o/kQHRGPP m5Ru5Wpg/016tvwFDhMzgoaskgR1773dx1AXs=
Hi:
I want to find all the system calls that will be called by a program.
Is there any tools to get it? I think normally a program just calls a
function call and the glibc actually calls the system call. How can I
find all the system calls in glibc? I know there are some dynamic
tools like strace, but I need to use static analysis tools because
they are more complete.
Another question, how can I debug glibc? I want to trace into some
function calls like fopen to see how it use actual system calls. My
distro is CentOS5, but I cannot find the package for debug info of
glibc.
Any suggestions?
Thanks,
Jiang