GDB (API)
|
#include "defs.h"
#include "inferior.h"
#include "bfd.h"
#include "symfile.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "serial.h"
#include "target.h"
#include "exceptions.h"
#include "gdb_string.h"
#include "gdb_stat.h"
#include "gdb_usleep.h"
#include "regcache.h"
#include <ctype.h>
#include "mips-tdep.h"
#include "gdbthread.h"
#include "gdb_bfd.h"
Go to the source code of this file.
Defines | |
#define | SYN '\026' |
#define | HDR_OFFSET 0x40 |
#define | HDR_INDX_SYN 0 |
#define | HDR_INDX_TYPE_LEN 1 |
#define | HDR_INDX_LEN1 2 |
#define | HDR_INDX_SEQ 3 |
#define | HDR_LENGTH 4 |
#define | TYPE_LEN_DA_BIT 0x20 |
#define | TYPE_LEN_DATA 0 |
#define | TYPE_LEN_ACK TYPE_LEN_DA_BIT |
#define | HDR_SET_SYN(data, len, seq) (SYN) |
#define | HDR_SET_TYPE_LEN(data, len, seq) |
#define | HDR_SET_LEN1(data, len, seq) (HDR_OFFSET + ((len) & 0x3f)) |
#define | HDR_SET_SEQ(data, len, seq) (HDR_OFFSET + (seq)) |
#define | HDR_CHECK(ch) (((ch) & HDR_OFFSET) == HDR_OFFSET) |
#define | HDR_IS_DATA(hdr) (((hdr)[HDR_INDX_TYPE_LEN] & TYPE_LEN_DA_BIT) == TYPE_LEN_DATA) |
#define | HDR_GET_LEN(hdr) ((((hdr)[HDR_INDX_TYPE_LEN] & 0x1f) << 6) + (((hdr)[HDR_INDX_LEN1] & 0x3f))) |
#define | HDR_GET_SEQ(hdr) ((unsigned int)(hdr)[HDR_INDX_SEQ] & 0x3f) |
#define | DATA_MAXLEN 1023 |
#define | TRLR_OFFSET HDR_OFFSET |
#define | TRLR_INDX_CSUM1 0 |
#define | TRLR_INDX_CSUM2 1 |
#define | TRLR_INDX_CSUM3 2 |
#define | TRLR_LENGTH 3 |
#define | TRLR_SET_CSUM1(cksum) (TRLR_OFFSET + (((cksum) >> 12) & 0x3f)) |
#define | TRLR_SET_CSUM2(cksum) (TRLR_OFFSET + (((cksum) >> 6) & 0x3f)) |
#define | TRLR_SET_CSUM3(cksum) (TRLR_OFFSET + (((cksum) ) & 0x3f)) |
#define | TRLR_CHECK(ch) (((ch) & TRLR_OFFSET) == TRLR_OFFSET) |
#define | TRLR_GET_CKSUM(trlr) |
#define | SEQ_MODULOS (64) |
#define | LOAD_CMD "load -b -s tty0\r" |
#define | LOAD_CMD_UDP "load -b -s udp\r" |
#define | MAX_LSI_BREAKPOINTS 256 |
#define | W_WARN |
#define | W_MSK |
#define | W_VAL |
#define | W_QAL |
#define | E_ERR |
#define | E_BPT 0x200 /* error: No such breakpoint number */ |
#define | E_RGE 0x201 /* error: Range is not supported */ |
#define | E_QAL |
#define | E_OUT 0x203 /* error: Out of hardware resources */ |
#define | E_NON 0x204 /* error: Hardware breakpoint not supported */ |
#define | REGNO_OFFSET 96 |
#define | DOETXACK (1) |
#define | CHECKSIZE (4 + 4 + 4 + 2) |
#define | BINCHUNK (1024) |
#define | MAXRECSIZE (550) |
Enumerations | |
enum | break_type { BREAK_WRITE, BREAK_READ, BREAK_ACCESS, BREAK_FETCH, BREAK_UNUSED } |
enum | mips_monitor_type { MON_IDT, MON_PMON, MON_DDB, MON_LSI, MON_ROCKHOPPER, MON_LAST } |
Functions | |
void | _initialize_remote_mips (void) |
Variables | |
struct target_ops | mips_ops |
struct target_ops | pmon_ops |
struct target_ops | ddb_ops |
struct target_ops | rockhopper_ops |
struct target_ops mips_ops pmon_ops ddb_ops rockhopper_ops | lsi_ops |
struct lsi_breakpoint_info | lsi_breakpoints [MAX_LSI_BREAKPOINTS] |
struct lsi_error | lsi_warning_table [] |
struct lsi_error | lsi_error_table [] |
initialize_file_ftype | _initialize_remote_mips |
#define BINCHUNK (1024) |
Definition at line 3076 of file remote-mips.c.
#define CHECKSIZE (4 + 4 + 4 + 2) |
Definition at line 3071 of file remote-mips.c.
#define DATA_MAXLEN 1023 |
Definition at line 258 of file remote-mips.c.
#define DOETXACK (1) |
Definition at line 2946 of file remote-mips.c.
#define E_BPT 0x200 /* error: No such breakpoint number */ |
Definition at line 419 of file remote-mips.c.
#define E_ERR |
0x200 /* This bit is set if the error code is an error */
Definition at line 418 of file remote-mips.c.
#define E_NON 0x204 /* error: Hardware breakpoint not supported */ |
Definition at line 423 of file remote-mips.c.
#define E_OUT 0x203 /* error: Out of hardware resources */ |
Definition at line 422 of file remote-mips.c.
#define E_QAL |
0x202 /* error: The requested qualifiers can not be used */
Definition at line 421 of file remote-mips.c.
#define E_RGE 0x201 /* error: Range is not supported */ |
Definition at line 420 of file remote-mips.c.
#define HDR_CHECK | ( | ch | ) | (((ch) & HDR_OFFSET) == HDR_OFFSET) |
Definition at line 247 of file remote-mips.c.
#define HDR_GET_LEN | ( | hdr | ) | ((((hdr)[HDR_INDX_TYPE_LEN] & 0x1f) << 6) + (((hdr)[HDR_INDX_LEN1] & 0x3f))) |
Definition at line 253 of file remote-mips.c.
#define HDR_GET_SEQ | ( | hdr | ) | ((unsigned int)(hdr)[HDR_INDX_SEQ] & 0x3f) |
Definition at line 255 of file remote-mips.c.
#define HDR_INDX_LEN1 2 |
Definition at line 228 of file remote-mips.c.
#define HDR_INDX_SEQ 3 |
Definition at line 229 of file remote-mips.c.
#define HDR_INDX_SYN 0 |
Definition at line 226 of file remote-mips.c.
#define HDR_INDX_TYPE_LEN 1 |
Definition at line 227 of file remote-mips.c.
#define HDR_IS_DATA | ( | hdr | ) | (((hdr)[HDR_INDX_TYPE_LEN] & TYPE_LEN_DA_BIT) == TYPE_LEN_DATA) |
Definition at line 251 of file remote-mips.c.
#define HDR_LENGTH 4 |
Definition at line 230 of file remote-mips.c.
#define HDR_OFFSET 0x40 |
Definition at line 223 of file remote-mips.c.
#define HDR_SET_LEN1 | ( | data, | |
len, | |||
seq | |||
) | (HDR_OFFSET + ((len) & 0x3f)) |
Definition at line 243 of file remote-mips.c.
#define HDR_SET_SEQ | ( | data, | |
len, | |||
seq | |||
) | (HDR_OFFSET + (seq)) |
Definition at line 244 of file remote-mips.c.
#define HDR_SET_SYN | ( | data, | |
len, | |||
seq | |||
) | (SYN) |
Definition at line 238 of file remote-mips.c.
#define HDR_SET_TYPE_LEN | ( | data, | |
len, | |||
seq | |||
) |
(HDR_OFFSET \ + ((data) ? TYPE_LEN_DATA : TYPE_LEN_ACK) \ + (((len) >> 6) & 0x1f))
Definition at line 239 of file remote-mips.c.
#define LOAD_CMD "load -b -s tty0\r" |
Definition at line 288 of file remote-mips.c.
#define LOAD_CMD_UDP "load -b -s udp\r" |
Definition at line 289 of file remote-mips.c.
#define MAX_LSI_BREAKPOINTS 256 |
Definition at line 401 of file remote-mips.c.
#define MAXRECSIZE (550) |
Definition at line 3079 of file remote-mips.c.
#define REGNO_OFFSET 96 |
Definition at line 1981 of file remote-mips.c.
#define SEQ_MODULOS (64) |
Definition at line 285 of file remote-mips.c.
#define SYN '\026' |
Definition at line 218 of file remote-mips.c.
#define TRLR_CHECK | ( | ch | ) | (((ch) & TRLR_OFFSET) == TRLR_OFFSET) |
Definition at line 275 of file remote-mips.c.
#define TRLR_GET_CKSUM | ( | trlr | ) |
((((trlr)[TRLR_INDX_CSUM1] & 0x3f) << 12) \ + (((trlr)[TRLR_INDX_CSUM2] & 0x3f) << 6) \ + ((trlr)[TRLR_INDX_CSUM3] & 0x3f))
Definition at line 279 of file remote-mips.c.
#define TRLR_INDX_CSUM1 0 |
Definition at line 264 of file remote-mips.c.
#define TRLR_INDX_CSUM2 1 |
Definition at line 265 of file remote-mips.c.
#define TRLR_INDX_CSUM3 2 |
Definition at line 266 of file remote-mips.c.
#define TRLR_LENGTH 3 |
Definition at line 267 of file remote-mips.c.
#define TRLR_OFFSET HDR_OFFSET |
Definition at line 261 of file remote-mips.c.
#define TRLR_SET_CSUM1 | ( | cksum | ) | (TRLR_OFFSET + (((cksum) >> 12) & 0x3f)) |
Definition at line 270 of file remote-mips.c.
#define TRLR_SET_CSUM2 | ( | cksum | ) | (TRLR_OFFSET + (((cksum) >> 6) & 0x3f)) |
Definition at line 271 of file remote-mips.c.
#define TRLR_SET_CSUM3 | ( | cksum | ) | (TRLR_OFFSET + (((cksum) ) & 0x3f)) |
Definition at line 272 of file remote-mips.c.
#define TYPE_LEN_ACK TYPE_LEN_DA_BIT |
Definition at line 235 of file remote-mips.c.
#define TYPE_LEN_DA_BIT 0x20 |
Definition at line 233 of file remote-mips.c.
#define TYPE_LEN_DATA 0 |
Definition at line 234 of file remote-mips.c.
#define W_MSK |
0x101 /* warning: Range feature is supported via mask */
Definition at line 414 of file remote-mips.c.
#define W_QAL |
0x104 /* warning: Requested qualifiers are not supported in hardware */
Definition at line 416 of file remote-mips.c.
#define W_VAL |
0x102 /* warning: Value check is not supported in hardware */
Definition at line 415 of file remote-mips.c.
#define W_WARN |
0x100 /* This bit is set if the error code is a warning */
Definition at line 413 of file remote-mips.c.
enum break_type |
Definition at line 46 of file remote-mips.c.
enum mips_monitor_type |
Definition at line 297 of file remote-mips.c.
void _initialize_remote_mips | ( | void | ) |
Definition at line 3608 of file remote-mips.c.
struct target_ops ddb_ops |
struct lsi_breakpoint_info lsi_breakpoints[MAX_LSI_BREAKPOINTS] |
struct lsi_error lsi_error_table[] |
Definition at line 295 of file remote-mips.c.
struct lsi_error lsi_warning_table[] |
{ {W_MSK, "Range feature is supported via mask"}, {W_VAL, "Value check is not supported in hardware"}, {W_QAL, "Requested qualifiers are not supported in hardware"}, {0, NULL} }
Definition at line 431 of file remote-mips.c.
struct target_ops mips_ops |
struct target_ops pmon_ops |
struct target_ops rockhopper_ops |