* src/threads/Makefile.am: Added mutex.h.
[cacao.git] / src / native / jvmti / dbg.h
index 44370c39e953bce035e63cede5002bc50cafda09..5c9bc127a03a5fb29adf016249f13570d13d4aed 100644 (file)
 
    Author: Martin Platter
 
-   Changes:             
-
-   
-   $Id: dbg.h 4661 2006-03-21 00:04:59Z motse $
+   Changes:
 
 */
 
 #ifndef _DBG_H
 #define _DBG_H
 
-#include <sys/types.h>
-#include <sys/ptrace.h>
-
-#define TRACEME ptrace(PTRACE_TRACEME, 0, 0, 0)
-#define DETACH(pid,sig)  ptrace(PTRACE_DETACH, pid, 0, sig)
 #define TRAPINS 0xcc /* opcode for brk */
-#define TRAP asm("int3")
-#define GETMEM(pid, addr) ptrace(PTRACE_PEEKDATA, pid, addr, 0)
-#define CONT(pid,sig) if(ptrace(PTRACE_CONT, pid, 0, sig)==-1) \
-                         perror("continue failed: ");
-#define DISABLEBRK(pid,ins,addr) ptrace(PTRACE_POKEDATA, pid, (caddr_t) addr, ins)
-#define GETREGS(pid,regs) ptrace(PTRACE_GETREGS, pid, 0, &regs)
-
-void* getip(pid_t pid);
-void setip(pid_t pid, void* ip);
-
-void setbrk(pid_t pid, void* addr,long* orig);
+#define TRAP __asm__("int3") 
 
 #endif
 #endif