source: rtems/c/src/lib/libbsp/mips/shared/gdbstub/gdb_if.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 3.5 KB
Line 
1/*
2 * gdb_if.h - definition of the interface between the stub and gdb
3 *
4 *                   THIS SOFTWARE IS NOT COPYRIGHTED
5 *
6 *  The following software is offered for use in the public domain.
7 *  There is no warranty with regard to this software or its performance
8 *  and the user must accept the software "AS IS" with all faults.
9 *
10 *  THE CONTRIBUTORS DISCLAIM ANY WARRANTIES, EXPRESS OR IMPLIED, WITH
11 *  REGARD TO THIS SOFTWARE INCLUDING BUT NOT LIMITED TO THE WARRANTIES
12 *  OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13 */
14
15#ifndef _GDB_IF_H
16#define _GDB_IF_H
17
18/* Max number of threads in qM response */
19#define QM_MAX_THREADS (20)
20
21struct rtems_gdb_stub_thread_info {
22  char display[256];
23  char name[256];
24  char more_display[256];
25};
26
27/*
28 *  Prototypes
29 */
30
31int parse_zbreak(const char *in, int *type, unsigned char **addr, int *len);
32
33char* mem2hstr(char *buf, const unsigned char *mem, int count);
34int   hstr2mem(unsigned char *mem, const char *buf, int count);
35void  set_mem_err(void);
36unsigned char get_byte(const unsigned char *ptr);
37void  set_byte(unsigned char *ptr, int val);
38char* thread2vhstr(char *buf, int thread);
39char* thread2fhstr(char *buf, int thread);
40const char* fhstr2thread(const char *buf, int *thread);
41const char* vhstr2thread(const char *buf, int *thread);
42char* int2fhstr(char *buf, int val);
43char* int2vhstr(char *buf, int vali);
44const char* fhstr2int(const char *buf, int *ival);
45const char* vhstr2int(const char *buf, int *ival);
46int   hstr2byte(const char *buf, int *bval);
47int   hstr2nibble(const char *buf, int *nibble);
48
49Thread_Control *rtems_gdb_index_to_stub_id(int);
50int rtems_gdb_stub_thread_support_ok(void);
51int rtems_gdb_stub_get_current_thread(void);
52int rtems_gdb_stub_get_next_thread(int);
53int rtems_gdb_stub_get_offsets(
54  unsigned char **text_addr,
55  unsigned char **data_addr,
56  unsigned char **bss_addr
57);
58int rtems_gdb_stub_get_thread_regs(
59  int thread,
60  unsigned int *registers
61);
62int rtems_gdb_stub_set_thread_regs(
63  int thread,
64  unsigned int *registers
65);
66void rtems_gdb_process_query(
67  char *inbuffer,
68  char *outbuffer,
69  int   do_threads,
70  int   thread
71);
72
73/*
74 * MIPS registers, numbered in the order in which gdb expects to see them.
75 */
76#define ZERO            0
77#define AT              1
78#define V0              2
79#define V1              3
80#define A0              4
81#define A1              5
82#define A2              6
83#define A3              7
84
85#define T0              8
86#define T1              9
87#define T2              10
88#define T3              11
89#define T4              12
90#define T5              13
91#define T6              14
92#define T7              15
93
94#define S0              16
95#define S1              17
96#define S2              18
97#define S3              19
98#define S4              20
99#define S5              21
100#define S6              22
101#define S7              23
102
103#define T8              24
104#define T9              25
105#define K0              26
106#define K1              27
107#define GP              28
108#define SP              29
109#define S8              30
110#define RA              31
111
112#define SR              32
113#define LO              33
114#define HI              34
115#define BAD_VA          35
116#define CAUSE           36
117#define PC              37
118
119#define F0              38
120#define F1              39
121#define F2              40
122#define F3              41
123#define F4              42
124#define F5              43
125#define F6              44
126#define F7              45
127
128#define F8              46
129#define F9              47
130#define F10             48
131#define F11             49
132#define F12             50
133#define F13             51
134#define F14             52
135#define F15             53
136
137#define F16             54
138#define F17             55
139#define F18             56
140#define F19             57
141#define F20             58
142#define F21             59
143#define F22             60
144#define F23             61
145
146#define F24             62
147#define F25             63
148#define F26             64
149#define F27             65
150#define F28             66
151#define F29             67
152#define F30             68
153#define F31             69
154
155#define FCSR            70
156#define FIRR            71
157
158#define NUM_REGS        72
159
160void mips_gdb_stub_install(int enableThreads) ;
161
162#define MEMOPT_READABLE   1
163#define MEMOPT_WRITEABLE  2
164
165#ifndef NUM_MEMSEGS
166#define NUM_MEMSEGS     10
167#endif
168
169int gdbstub_add_memsegment(unsigned,unsigned,int);
170
171#endif /* _GDB_IF_H */
Note: See TracBrowser for help on using the repository browser.