/* src/native/jvmti/cacaodbgserver.c - contains the cacaodbgserver process. This process controls the debuggee/cacao vm. Copyright (C) 1996-2005, 2006 R. Grafl, A. Krall, C. Kruegel, C. Oates, R. Obermaisser, M. Platter, M. Probst, S. Ring, E. Steiner, C. Thalinger, D. Thuernbeck, P. Tomsich, C. Ullrich, J. Wenninger, Institut f. Computersprachen - TU Wien This file is part of CACAO. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Contact: cacao@complang.tuwien.ac.at Authors: Martin Platter Changes: Edwin Steiner Samuel Vinson $Id: cacao.c,v 3.165 2006/01/03 23:44:38 twisti Exp $ */ #include "native/jvmti/cacaodbgserver.h" #include "native/jvmti/cacaodbg.h" #include "native/jvmti/dbg.h" #include #include #include #include #include #include pid_t debuggee; /* getchildprocptrace ********************************************************* Get data count number of bytes from address addr for child process address space. Requested data is stored in the array pointed to by ptr. *******************************************************************************/ static void getchildprocptrace (char *ptr, void* addr, int cnt) { long i, longcnt; long *p = (long*) ptr; longcnt = cnt/sizeof(long); for (i=0; i