diff options
author | Petr Machata <pmachata@redhat.com> | 2012-01-03 17:03:39 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2012-08-29 19:02:05 +0200 |
commit | 000e31195ad4ad30a0c80c93ab57a424e7d8d918 (patch) | |
tree | 5cbadf5497d1ef87725561d74b4e193f2ec8ef48 /sysdeps/linux-gnu/x86_64/trace.c | |
parent | a0a6a54a41d828c9a018829033443b0faabefb2f (diff) | |
download | ltrace-000e31195ad4ad30a0c80c93ab57a424e7d8d918.tar.gz |
Add type.c/.h, value.c/.h, value_dict.c/.h
- none of this is plugged in yet
- expr.c/.h is not in yet, so we still express array length with len_spec
integer. Some function are mocked out so the thing compiles
Diffstat (limited to 'sysdeps/linux-gnu/x86_64/trace.c')
-rw-r--r-- | sysdeps/linux-gnu/x86_64/trace.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/linux-gnu/x86_64/trace.c b/sysdeps/linux-gnu/x86_64/trace.c index 0d3f693..ec53bfc 100644 --- a/sysdeps/linux-gnu/x86_64/trace.c +++ b/sysdeps/linux-gnu/x86_64/trace.c @@ -13,6 +13,7 @@ #include "common.h" #include "ptrace.h" #include "proc.h" +#include "type.h" #if (!defined(PTRACE_PEEKUSER) && defined(PTRACE_PEEKUSR)) # define PTRACE_PEEKUSER PTRACE_PEEKUSR @@ -112,7 +113,7 @@ gimme_arg32(enum tof type, Process *proc, int arg_num) { } static long -gimme_arg_regset(Process *proc, int arg_num, arg_type_info *info, +gimme_arg_regset(Process *proc, int arg_num, struct arg_type_info *info, struct user_regs_struct *regs, struct user_fpregs_struct *fpregs) { @@ -148,7 +149,7 @@ gimme_arg_regset(Process *proc, int arg_num, arg_type_info *info, } } static long -gimme_retval(Process *proc, int arg_num, arg_type_info *info, +gimme_retval(Process *proc, int arg_num, struct arg_type_info *info, struct user_regs_struct *regs, struct user_fpregs_struct *fpregs) { if (info->type == ARGTYPE_FLOAT || info->type == ARGTYPE_DOUBLE) @@ -158,7 +159,9 @@ gimme_retval(Process *proc, int arg_num, arg_type_info *info, } long -gimme_arg(enum tof type, Process *proc, int arg_num, arg_type_info *info) { +gimme_arg(enum tof type, Process *proc, int arg_num, + struct arg_type_info *info) +{ if (proc->mask_32bit) return (unsigned int)gimme_arg32(type, proc, arg_num); |