Changes:
- $Id: cacao.c,v 3.165 2006/01/03 23:44:38 twisti Exp $
*/
#ifndef _CACAODBGSERVER_H
#define _CACAODBGSERVER_H
-#include "vm/global.h"
-#include <semaphore.h>
+#define INBUFLEN 8192
-/* supported message types */
-#define MSGQCACAODBGSRV 1 /* messages for cacaodbgserver process */
-#define MSGQDEBUGGER 2 /* messages for debugger process */
-#define MSGQPTRACESND 3 /* messages for ptrace request */
-#define MSGQPTRACERCV 4 /* messages for ptrace return value */
+#define CONTINUE "-exec-continue\n"
-/* supported ptrace loop calls */
-#define PTCONT 1 /* ptrace continue */
-#define PTPEEKDATA 2 /* ptrace peek data */
-#define PTSETBRK 3 /* set breakpiont */
-#define PTDELBRK 4 /* delete breakpiont */
-#define PTGETREG 5 /* get registers */
+#define HCSIGTRAP "*stopped,reason=\"signal-received\",signal-name=\"SIGTRAP\""
+#define GDBBREAKPOINT "*stopped,reason=\"breakpoint-hit\""
+#define EXITEDNORMALLY "*stopped,reason=\"exited-normally\""
+#define REGNAMES "^done,register-names=["
+#define CURRENTTHREAD "~\"*"
+#define SIGADDR "frame={addr=\""
+#define DATAEVALUATE "value=\""
+#define LOGSTREAMOUTPUT '&'
+#define CONSOLESTREAMOUTPUT '~'
+#define OUTPUTEND "(gdb)"
+#define OUTPUTENDSIZE 5
-typedef struct {
- long mtype;
- int kind;
- void* addr;
- int data;
- long ldata;
-} ptrace_request;
-
-typedef struct {
- long mtype;
- bool successful;
- int datasize;
- char data[1];
-} ptrace_reply;
-
-
-typedef struct {
- long mtype;
- int signal;
- void *ip;
-} basic_event;
-
-typedef struct {
- bool running; /* true if debuggee process is running */
- int hastostop; /* if greater then zero the debugger needs the
- debuggee to be stopped */
-} cacaodbgserver_data;
-
-
-int msgqid; /* message queue for the communication between
- debugger/jdwp and cacaodbgserver process */
-int shmid; /* shared memory for saving running state */
-sem_t workingdata_lock; /* semaphore for cacaodbgserver_data shared
- memory structure */
-cacaodbgserver_data *cdbgshmem; /* cacaodbgserver shared memory pointer */
-
-
-
-void cacaodbgserver(); /* entry point function to cacaodbgserver proc */
-
#endif
/*