Add support store ddr param in flash.
[xloong.git] / include / debugger.h
blobbfb8c4b72914ac15b34d7f37c767b1a29afbc7df
1 /* $Id: debugger.h,v 1.1.1.1 2006/09/14 01:59:06 root Exp $ */
3 /*
4 * Copyright (c) 2002 Patrik Lindergren (www.lindergren.com)
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. All advertising materials mentioning features or use of this software
15 * must display the following acknowledgement:
16 * This product includes software developed by Patrik Lindergren.
17 * 4. The name of the author may not be used to endorse or promote products
18 * derived from this software without specific prior written permission.
20 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
21 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
24 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
33 #ifndef __DEBUGGER_H__
34 #define __DEBUGGER_H__
36 #ifndef STOPMAX
37 #define STOPMAX 10
38 #endif /* STOPMAX */
40 #ifndef PCHISTSZ
41 #define PCHISTSZ 200
42 #endif /* PCHISTSZ */
44 extern int trace_mode;
45 extern unsigned long trace_count;
46 extern int trace_verbose;
47 extern int trace_invalid;
48 extern int trace_over;
49 extern int trace_bflag;
50 extern int trace_cflag;
51 extern Stopentry stopval[STOPMAX];
53 void exception __P((struct trapframe *));
55 int setTrcbp __P((void *, int));
56 int is_break_point __P((void *));
57 int is_validpc __P((void *));
58 void addpchist __P((void *));
59 void clrpchist __P((void));
60 void store_trace_breakpoint __P((void));
61 void remove_trace_breakpoint __P((void));
62 void store_breakpoint __P((void));
63 void sstep __P((void));
64 void compute_validpc __P((void));
65 void pmon_stop __P((char *));
66 void rm_bpts __P((void));
67 void dspbpts __P((void));
68 int goclient __P((void));
69 int addstop __P((u_int32_t, u_int32_t, char *, char));
71 #endif /* __DEBUGGER_H__ */