aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/m68k
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2002-03-03 18:58:40 +0100
committerJuan Cespedes <cespedes@debian.org>2002-03-03 18:58:40 +0100
commit8f8282f72eaeadc5419cd5470100e8dcaba5b7fd (patch)
tree793f74ac8f82eaacfe6fa36763a4d197d5147ec1 /sysdeps/linux-gnu/m68k
parent96c3fd0c58f7f57a0d8b317ba9b43dffc03a18a1 (diff)
downloadltrace-8f8282f72eaeadc5419cd5470100e8dcaba5b7fd.tar.gz
Version 0.3.23
* Fixed missing include <unistd.h> in trace.c * One arch-dependent function less (continue_after_breakpoint) * Fixed S/390 port (it didn't compile yet...)
Diffstat (limited to 'sysdeps/linux-gnu/m68k')
-rw-r--r--sysdeps/linux-gnu/m68k/regs.c5
-rw-r--r--sysdeps/linux-gnu/m68k/trace.c12
2 files changed, 5 insertions, 12 deletions
diff --git a/sysdeps/linux-gnu/m68k/regs.c b/sysdeps/linux-gnu/m68k/regs.c
index 1f51417..ff784bb 100644
--- a/sysdeps/linux-gnu/m68k/regs.c
+++ b/sysdeps/linux-gnu/m68k/regs.c
@@ -19,6 +19,11 @@ get_instruction_pointer(pid_t pid) {
return (void *)ptrace(PTRACE_PEEKUSER, pid, 4*PT_PC, 0);
}
+void
+set_instruction_pointer(pid_t pid, long addr) {
+ ptrace(PTRACE_POKEUSER, pid, 4*PT_PC, addr);
+}
+
void *
get_stack_pointer(pid_t pid) {
return (void *)ptrace(PTRACE_PEEKUSER, pid, 4*PT_USP, 0);
diff --git a/sysdeps/linux-gnu/m68k/trace.c b/sysdeps/linux-gnu/m68k/trace.c
index a39a6ee..6f0ee81 100644
--- a/sysdeps/linux-gnu/m68k/trace.c
+++ b/sysdeps/linux-gnu/m68k/trace.c
@@ -41,18 +41,6 @@ syscall_p(struct process * proc, int status, int * sysnum) {
return 0;
}
-void
-continue_after_breakpoint(struct process *proc, struct breakpoint * sbp) {
- if (sbp->enabled) disable_breakpoint(proc->pid, sbp);
- ptrace(PTRACE_POKEUSER, proc->pid, 4*PT_PC, sbp->addr);
- if (sbp->enabled == 0) {
- continue_process(proc->pid);
- } else {
- proc->breakpoint_being_enabled = sbp;
- ptrace(PTRACE_SINGLESTEP, proc->pid, 0, 0);
- }
-}
-
long
gimme_arg(enum tof type, struct process * proc, int arg_num) {
if (arg_num==-1) { /* return value */