aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/x86_64/trace.c
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2008-12-16 18:19:58 +0100
committerJuan Cespedes <cespedes@debian.org>2008-12-16 18:19:58 +0100
commitf13505251e6402460f6cc7ec84e0d8ca91607b4f (patch)
tree883ded52fe552220b5500f761f8e3031de22c043 /sysdeps/linux-gnu/x86_64/trace.c
parent7dd291227d81d3bc32c67e90fb7f7c51c76f39dd (diff)
downloadltrace-f13505251e6402460f6cc7ec84e0d8ca91607b4f.tar.gz
Re-indent entry points to functions
Diffstat (limited to 'sysdeps/linux-gnu/x86_64/trace.c')
-rw-r--r--sysdeps/linux-gnu/x86_64/trace.c19
1 files changed, 9 insertions, 10 deletions
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) {
}