/* arm_regdefs.c - necessary arm definition for skyeye debugger Copyright (C) 2003 Skyeye Develop Group for help please send mail to 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 of the License, 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 */ /* * 12/16/2006 Michael.Kang */ #include "skyeye_arch.h" #include "skyeye2gdb.h" #include "skyeye_defs.h" register_defs_t *register_types[MAX_SUPP_ARCH]; void register_reg_type(register_defs_t * reg_type){ int i; for (i = 0; i < MAX_SUPP_ARCH; i++) { if (register_types[i] == NULL) { register_types[i] = reg_type; return; } } } extern void init_arm_register_defs(); extern void init_bfin_register_defs(); //extern void init_mips_register_defs(); extern void init_cf_register_defs(); //extern void init_ppc_register_defs(); register_defs_t * current_reg_type; /* * Initializing all register type for supported architechtures */ void init_register_type(){ int i; for (i = 0; i < MAX_SUPP_ARCH; i++) { register_types[i] = NULL; } /* register arm_arch */ init_arm_register_defs (); /*register bfin_arch */ init_bfin_register_defs (); /* register mips_arch */ // init_mips_register_defs (); //koodailar add this for mingw 2005.12.18--------------------------------------- //there is something wrong with Makefile for Dev-cpp //so i remove it. #ifndef __MINGW32__ /* register coldfire_arch */ init_cf_register_defs (); #endif current_reg_type = register_types[0]; }