From f13505251e6402460f6cc7ec84e0d8ca91607b4f Mon Sep 17 00:00:00 2001 From: Juan Cespedes Date: Tue, 16 Dec 2008 18:19:58 +0100 Subject: Re-indent entry points to functions --- sysdeps/linux-gnu/x86_64/trace.c | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'sysdeps/linux-gnu/x86_64/trace.c') diff --git a/sysdeps/linux-gnu/x86_64/trace.c b/sysdeps/linux-gnu/x86_64/trace.c index 57d0e1f..f37eb2e 100644 --- a/sysdeps/linux-gnu/x86_64/trace.c +++ b/sysdeps/linux-gnu/x86_64/trace.c @@ -19,8 +19,8 @@ # define PTRACE_POKEUSER PTRACE_POKEUSR #endif -void get_arch_dep(struct process *proc) -{ +void +get_arch_dep(struct process *proc) { unsigned long cs; if (proc->arch_ptr) return; @@ -34,8 +34,8 @@ void get_arch_dep(struct process *proc) /* Returns 1 if syscall, 2 if sysret, 0 otherwise. */ -int syscall_p(struct process *proc, int status, int *sysnum) -{ +int +syscall_p(struct process *proc, int status, int *sysnum) { if (WIFSTOPPED(status) && WSTOPSIG(status) == (SIGTRAP | proc->tracesysgood)) { *sysnum = ptrace(PTRACE_PEEKUSER, proc->pid, 8 * ORIG_RAX, 0); @@ -53,8 +53,7 @@ int syscall_p(struct process *proc, int status, int *sysnum) } static unsigned int -gimme_arg32(enum tof type, struct process *proc, int arg_num) -{ +gimme_arg32(enum tof type, struct process *proc, int arg_num) { if (arg_num == -1) { /* return value */ return ptrace(PTRACE_PEEKUSER, proc->pid, 8 * RAX, 0); } @@ -86,8 +85,8 @@ gimme_arg32(enum tof type, struct process *proc, int arg_num) exit(1); } -long gimme_arg(enum tof type, struct process *proc, int arg_num, arg_type_info *info) -{ +long +gimme_arg(enum tof type, struct process *proc, int arg_num, arg_type_info *info) { if (proc->mask_32bit) return (unsigned int)gimme_arg32(type, proc, arg_num); @@ -141,6 +140,6 @@ long gimme_arg(enum tof type, struct process *proc, int arg_num, arg_type_info * return 0; } -void save_register_args(enum tof type, struct process *proc) -{ +void +save_register_args(enum tof type, struct process *proc) { } -- cgit v1.2.3