aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/linux-gnu/m68k
diff options
context:
space:
mode:
authorJuan Cespedes <cespedes@debian.org>2002-03-03 02:37:50 +0100
committerJuan Cespedes <cespedes@debian.org>2002-03-03 02:37:50 +0100
commita4850831bf4b4548af517335081b58cf006fd168 (patch)
tree38dfce9b0f44211c896626d94e8af3c9c06d6b7d /sysdeps/linux-gnu/m68k
parentb1dd77d66f93eeaa6cbf8b101d3e9cf70981e000 (diff)
downloadltrace-a4850831bf4b4548af517335081b58cf006fd168.tar.gz
Version 0.3.21
* Get rid of arch/breakpoint.c; we can do it arch-independent
Diffstat (limited to 'sysdeps/linux-gnu/m68k')
-rw-r--r--sysdeps/linux-gnu/m68k/Makefile2
-rw-r--r--sysdeps/linux-gnu/m68k/arch.h2
-rw-r--r--sysdeps/linux-gnu/m68k/breakpoint.c28
3 files changed, 2 insertions, 30 deletions
diff --git a/sysdeps/linux-gnu/m68k/Makefile b/sysdeps/linux-gnu/m68k/Makefile
index 2af3c25..4b347a5 100644
--- a/sysdeps/linux-gnu/m68k/Makefile
+++ b/sysdeps/linux-gnu/m68k/Makefile
@@ -1,4 +1,4 @@
-OBJ = breakpoint.o trace.o regs.o
+OBJ = trace.o regs.o
all: arch.o
diff --git a/sysdeps/linux-gnu/m68k/arch.h b/sysdeps/linux-gnu/m68k/arch.h
index b701e29..a29e5f1 100644
--- a/sysdeps/linux-gnu/m68k/arch.h
+++ b/sysdeps/linux-gnu/m68k/arch.h
@@ -1,3 +1,3 @@
-#define BREAKPOINT_VALUE {0x4e,0x4f}
+#define BREAKPOINT_VALUE { 0x4e, 0x4f }
#define BREAKPOINT_LENGTH 2
#define DECR_PC_AFTER_BREAK 2
diff --git a/sysdeps/linux-gnu/m68k/breakpoint.c b/sysdeps/linux-gnu/m68k/breakpoint.c
deleted file mode 100644
index c74c4d2..0000000
--- a/sysdeps/linux-gnu/m68k/breakpoint.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#if HAVE_CONFIG_H
-#include "config.h"
-#endif
-
-#include <sys/ptrace.h>
-#include "ltrace.h"
-
-void
-enable_breakpoint(pid_t pid, struct breakpoint * sbp) {
- int a;
-
- a = ptrace(PTRACE_PEEKTEXT, pid, sbp->addr, 0);
- sbp->orig_value[0] = (a & 0xFF000000) >> 24;
- sbp->orig_value[1] = (a & 0x00FF0000) >> 16;
- a &= 0x0000FFFF;
- a |= 0x4E4F0000;
- ptrace(PTRACE_POKETEXT, pid, sbp->addr, a);
-}
-
-void
-disable_breakpoint(pid_t pid, const struct breakpoint * sbp) {
- int a;
-
- a = ptrace(PTRACE_PEEKTEXT, pid, sbp->addr, 0);
- a &= 0x0000FFFF;
- a |= (sbp->orig_value[0] << 24) | (sbp->orig_value[1] << 16);
- ptrace(PTRACE_POKETEXT, pid, sbp->addr, a);
-}