Coding style nits
diff --git a/sysdeps/linux-gnu/breakpoint.c b/sysdeps/linux-gnu/breakpoint.c
index 9104189..576a26d 100644
--- a/sysdeps/linux-gnu/breakpoint.c
+++ b/sysdeps/linux-gnu/breakpoint.c
@@ -32,9 +32,8 @@
}
for (i = 0; i < 1 + ((BREAKPOINT_LENGTH - 1) / sizeof(long)); i++) {
- long a =
- ptrace(PTRACE_PEEKTEXT, pid, sbp->addr + i * sizeof(long),
- 0);
+ long a = ptrace(PTRACE_PEEKTEXT, pid,
+ sbp->addr + i * sizeof(long), 0);
for (j = 0;
j < sizeof(long)
&& i * sizeof(long) + j < BREAKPOINT_LENGTH; j++) {
diff --git a/sysdeps/linux-gnu/events.c b/sysdeps/linux-gnu/events.c
index fd19e71..fa7c82b 100644
--- a/sysdeps/linux-gnu/events.c
+++ b/sysdeps/linux-gnu/events.c
@@ -14,7 +14,8 @@
static Event event;
Event *
-next_event(void) {
+next_event(void)
+{
pid_t pid;
int status;
int tmp;
diff --git a/sysdeps/linux-gnu/proc.c b/sysdeps/linux-gnu/proc.c
index e1cadf7..fbc3d99 100644
--- a/sysdeps/linux-gnu/proc.c
+++ b/sysdeps/linux-gnu/proc.c
@@ -187,7 +187,10 @@
addr = sym.st_value;
add_library_symbol(addr, xptr->name, &library_symbols, LS_TOPLT_NONE, 0);
xptr->found = 1;
- insert_breakpoint(lm_add->proc, sym2addr(lm_add->proc, library_symbols), library_symbols);
+ insert_breakpoint(lm_add->proc,
+ sym2addr(lm_add->proc,
+ library_symbols),
+ library_symbols);
}
}
do_close_elf(<e);
@@ -275,7 +278,8 @@
data.lte = lte;
add_library_symbol(rdbg->r_brk, "", &library_symbols, LS_TOPLT_NONE, 0);
- insert_breakpoint(proc, sym2addr(proc, library_symbols), library_symbols);
+ insert_breakpoint(proc, sym2addr(proc, library_symbols),
+ library_symbols);
crawl_linkmap(proc, rdbg, hook_libdl_cb, &data);
diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c
index e4be465..9ab80d3 100644
--- a/sysdeps/linux-gnu/trace.c
+++ b/sysdeps/linux-gnu/trace.c
@@ -69,7 +69,7 @@
void
trace_me(void) {
- debug(DEBUG_PROCESS, "trace_me: pid=%d\n", getpid());
+ debug(DEBUG_PROCESS, "trace_me: pid=%d", getpid());
if (ptrace(PTRACE_TRACEME, 0, 1, 0) < 0) {
perror("PTRACE_TRACEME");
exit(1);
@@ -78,7 +78,7 @@
int
trace_pid(pid_t pid) {
- debug(DEBUG_PROCESS, "trace_pid: pid=%d\n", pid);
+ debug(DEBUG_PROCESS, "trace_pid: pid=%d", pid);
if (ptrace(PTRACE_ATTACH, pid, 1, 0) < 0) {
return -1;
}
@@ -100,7 +100,7 @@
if (proc->tracesysgood & 0x80)
return;
- debug(DEBUG_PROCESS, "trace_set_options: pid=%d\n", pid);
+ debug(DEBUG_PROCESS, "trace_set_options: pid=%d", pid);
long options = PTRACE_O_TRACESYSGOOD | PTRACE_O_TRACEFORK |
PTRACE_O_TRACEVFORK | PTRACE_O_TRACECLONE |
@@ -115,7 +115,7 @@
void
untrace_pid(pid_t pid) {
- debug(DEBUG_PROCESS, "untrace_pid: pid=%d\n", pid);
+ debug(DEBUG_PROCESS, "untrace_pid: pid=%d", pid);
ptrace(PTRACE_DETACH, pid, 1, 0);
}
@@ -153,14 +153,17 @@
}
void
-continue_after_breakpoint(Process *proc, Breakpoint *sbp) {
+continue_after_breakpoint(Process *proc, Breakpoint *sbp)
+{
if (sbp->enabled)
disable_breakpoint(proc->pid, sbp);
set_instruction_pointer(proc, sbp->addr);
if (sbp->enabled == 0) {
continue_process(proc->pid);
} else {
- debug(DEBUG_PROCESS, "continue_after_breakpoint: pid=%d, addr=%p", proc->pid, sbp->addr);
+ debug(DEBUG_PROCESS,
+ "continue_after_breakpoint: pid=%d, addr=%p",
+ proc->pid, sbp->addr);
proc->breakpoint_being_enabled = sbp;
#if defined __sparc__ || defined __ia64___ || defined __mips__
/* we don't want to singlestep here */