[Ltrace-devel] [PATCH 2/2] linux-gnu/trace.c: Disable breakpoint before we resume execution
Markos Chandras
markos.chandras at gmail.com
Tue Mar 5 13:05:20 UTC 2013
From: Markos Chandras <markos.chandras at imgtec.com>
We need to disable the breakpoint he just hit, otherwise when
we resume we will hit the same breakpoint again.
Signed-off-by: Markos Chandras <markos.chandras at imgtec.com>
---
sysdeps/linux-gnu/trace.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/sysdeps/linux-gnu/trace.c b/sysdeps/linux-gnu/trace.c
index 9a57a0a..a526834 100644
--- a/sysdeps/linux-gnu/trace.c
+++ b/sysdeps/linux-gnu/trace.c
@@ -909,6 +909,7 @@ continue_after_breakpoint(struct process *proc, struct breakpoint *sbp)
continue_process(proc->pid);
} else {
#if defined __sparc__ || defined __ia64___ || defined __metag__
+ disable_breakpoint(proc, sbp);
/* we don't want to singlestep here */
continue_process(proc->pid);
#else
--
1.7.1
More information about the Ltrace-devel
mailing list