1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
/*
debugger.h - necessary definition for skyeye debugger
Copyright (C) 2003 Skyeye Develop Group
for help please send mail to <skyeye-developer@lists.sf.linuxforum.net>
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/04/2005 ksh <blackfin.kang@gmail.com>
* */
#ifndef __SKYEYE2GDB_H__
#define __SKYEYE2GDB_H__
#include "gdb_tracepoint.h"
//chy 2006-04-12 add ICE Simulation
//chy 2006-04-12 define skyeye_ice struct
#define MAX_BREAKPOINTS 16
#define MAX_TRACEPOINTS 16
#define MAX_ACTION_LENGTH 80
struct SkyEye_ICE{
unsigned int bps[MAX_BREAKPOINTS];
int num_bps;
trace_status tps_status; // is tracing enabled or disabled ?
tracepoint_def tps[MAX_TRACEPOINTS]; // tracepoints array
int num_tps;
frame_buffer *fb; // frames linked list
int num_fb;
frame_buffer *selected_fb;
ro_region *ro_region_head;
};
extern struct SkyEye_ICE skyeye_ice;
struct register_defs{
char * name;
int (*register_raw_size)(int x);
int register_bytes;
int (*register_byte)(int x);
int num_regs;
int max_register_raw_size;
int endian_flag;
int pc_regnum;
int sp_regnum;
int fp_regnum;
int (*store_register)(int rn, unsigned char * memory);
int (*fetch_register)(int rn, unsigned char * memory);
};
typedef struct register_defs register_defs_t;
#endif
|