GDB (xrefs)
|
#include "defs.h"
#include "inferior.h"
#include "infrun.h"
#include "bfd.h"
#include "symfile.h"
#include "gdbcmd.h"
#include "gdbcore.h"
#include "serial.h"
#include "target.h"
#include <sys/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.
Classes | |
struct | lsi_breakpoint_info |
struct | lsi_error |
Macros | |
#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 | |
static int | mips_readchar (int timeout) |
static int | mips_receive_header (unsigned char *hdr, int *pgarbage, int ch, int timeout) |
static int | mips_receive_trailer (unsigned char *trlr, int *pgarbage, int *pch, int timeout) |
static int | mips_cksum (const unsigned char *hdr, const char *data, int len) |
static void | mips_send_packet (const char *s, int get_ack) |
static void | mips_send_command (const char *cmd, int prompt) |
static int | mips_receive_packet (char *buff, int throw_error, int timeout) |
static ULONGEST | mips_request (int cmd, ULONGEST addr, ULONGEST data, int *perr, int timeout, char *buff) |
static void | mips_initialize (void) |
static void | mips_close (struct target_ops *self) |
static int | mips_map_regno (struct gdbarch *, int) |
static void | mips_set_register (int regno, ULONGEST value) |
static void | mips_prepare_to_store (struct target_ops *self, struct regcache *regcache) |
static int | mips_fetch_word (CORE_ADDR addr, unsigned int *valp) |
static int | mips_store_word (CORE_ADDR addr, unsigned int value, int *old_contents) |
static enum target_xfer_status | mips_xfer_memory (gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST memaddr, ULONGEST len, ULONGEST *xfered_len) |
static void | mips_files_info (struct target_ops *ignore) |
static void | mips_mourn_inferior (struct target_ops *ops) |
static int | pmon_makeb64 (unsigned long v, char *p, int n, unsigned int *chksum) |
static int | pmon_zeroset (int recsize, char **buff, unsigned int *amount, unsigned int *chksum) |
static int | pmon_checkset (int recsize, char **buff, unsigned int *value) |
static void | pmon_make_fastrec (char **outbuf, unsigned char *inbuf, int *inptr, int inamount, int *recsize, unsigned int *csum, unsigned int *zerofill) |
static int | pmon_check_ack (char *mesg) |
static void | pmon_start_download (void) |
static void | pmon_end_download (int final, int bintotal) |
static void | pmon_download (char *buffer, int length) |
static void | mips_load (struct target_ops *self, const char *file, int from_tty) |
static int | mips_make_srec (char *buffer, int type, CORE_ADDR memaddr, unsigned char *myaddr, int len) |
static int | mips_set_breakpoint (CORE_ADDR addr, int len, enum break_type type) |
static int | mips_clear_breakpoint (CORE_ADDR addr, int len, enum break_type type) |
static int | mips_common_breakpoint (int set, CORE_ADDR addr, int len, enum break_type type) |
static void | close_ports (void) |
static void ATTRIBUTE_NORETURN | mips_error (char *string,...) |
static void | fputc_readable (int ch, struct ui_file *file) |
static void | fputs_readable (const char *string, struct ui_file *file) |
static int | read_hex_value (const char *p, ULONGEST *result) |
static int | mips_expect_timeout (const char *string, int timeout) |
static int | mips_expect (const char *string) |
static void | mips_initialize_cleanups (void *arg) |
static void | mips_exit_cleanups (void *arg) |
static void | mips_enter_debug (void) |
static int | mips_exit_debug (void) |
static void | common_open (struct target_ops *ops, const char *name, int from_tty, enum mips_monitor_type new_monitor, const char *new_monitor_prompt) |
static void | mips_open (const char *name, int from_tty) |
static void | pmon_open (const char *name, int from_tty) |
static void | ddb_open (const char *name, int from_tty) |
static void | rockhopper_open (const char *name, int from_tty) |
static void | lsi_open (const char *name, int from_tty) |
static void | mips_detach (struct target_ops *ops, const char *args, int from_tty) |
static void | mips_resume (struct target_ops *ops, ptid_t ptid, int step, enum gdb_signal siggnal) |
static enum gdb_signal | mips_signal_from_protocol (int sig) |
static ptid_t | mips_wait (struct target_ops *ops, ptid_t ptid, struct target_waitstatus *status, int options) |
static void | mips_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regno) |
static void | mips_store_registers (struct target_ops *ops, struct regcache *regcache, int regno) |
static enum target_xfer_status | mips_xfer_partial (struct target_ops *ops, enum target_object object, const char *annex, gdb_byte *readbuf, const gdb_byte *writebuf, ULONGEST offset, ULONGEST len, ULONGEST *xfered_len) |
static void | mips_kill (struct target_ops *ops) |
static void | mips_create_inferior (struct target_ops *ops, char *execfile, char *args, char **env, int from_tty) |
static int | mips_insert_breakpoint (struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
static int | mips_remove_breakpoint (struct target_ops *ops, struct gdbarch *gdbarch, struct bp_target_info *bp_tgt) |
static int | mips_can_use_watchpoint (struct target_ops *self, int type, int cnt, int othertype) |
static unsigned long | calculate_mask (CORE_ADDR addr, int len) |
static int | mips_insert_watchpoint (struct target_ops *self, CORE_ADDR addr, int len, int type, struct expression *cond) |
static int | mips_remove_watchpoint (struct target_ops *self, CORE_ADDR addr, int len, int type, struct expression *cond) |
static int | mips_stopped_by_watchpoint (struct target_ops *ops) |
static int | mips_check_lsi_error (CORE_ADDR addr, int rerrflg) |
static void | send_srec (char *srec, int len, CORE_ADDR addr) |
static void | mips_load_srec (const char *args) |
static int | mips_expect_download (char *string) |
static void | pmon_check_entry_address (char *entry_address, int final) |
static int | pmon_check_total (int bintotal) |
static void | pmon_load_fast (const char *file) |
static int | mips_thread_alive (struct target_ops *ops, ptid_t ptid) |
static char * | mips_pid_to_str (struct target_ops *ops, ptid_t ptid) |
static void | pmon_command (char *args, int from_tty) |
void | _initialize_remote_mips (void) |
#define BINCHUNK (1024) |
Definition at line 3094 of file remote-mips.c.
Referenced by pmon_load_fast().
#define CHECKSIZE (4 + 4 + 4 + 2) |
Definition at line 3089 of file remote-mips.c.
Referenced by pmon_load_fast(), and pmon_make_fastrec().
#define DATA_MAXLEN 1023 |
Definition at line 247 of file remote-mips.c.
Referenced by mips_common_breakpoint(), mips_enter_debug(), mips_request(), mips_send_packet(), mips_wait(), and pmon_command().
#define DOETXACK (1) |
Definition at line 2964 of file remote-mips.c.
#define E_BPT 0x200 /* error: No such breakpoint number */ |
Definition at line 413 of file remote-mips.c.
#define E_ERR |
Definition at line 411 of file remote-mips.c.
#define E_NON 0x204 /* error: Hardware breakpoint not supported */ |
Definition at line 418 of file remote-mips.c.
#define E_OUT 0x203 /* error: Out of hardware resources */ |
Definition at line 417 of file remote-mips.c.
#define E_QAL |
Definition at line 415 of file remote-mips.c.
#define E_RGE 0x201 /* error: Range is not supported */ |
Definition at line 414 of file remote-mips.c.
#define HDR_CHECK | ( | ch | ) | (((ch) & HDR_OFFSET) == HDR_OFFSET) |
Definition at line 236 of file remote-mips.c.
Referenced by mips_receive_header().
#define HDR_GET_LEN | ( | hdr | ) | ((((hdr)[HDR_INDX_TYPE_LEN] & 0x1f) << 6) + (((hdr)[HDR_INDX_LEN1] & 0x3f))) |
Definition at line 242 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_GET_SEQ | ( | hdr | ) | ((unsigned int)(hdr)[HDR_INDX_SEQ] & 0x3f) |
Definition at line 244 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_INDX_LEN1 2 |
Definition at line 217 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_INDX_SEQ 3 |
Definition at line 218 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_INDX_SYN 0 |
Definition at line 215 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_INDX_TYPE_LEN 1 |
Definition at line 216 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_IS_DATA | ( | hdr | ) | (((hdr)[HDR_INDX_TYPE_LEN] & TYPE_LEN_DA_BIT) == TYPE_LEN_DATA) |
Definition at line 240 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_LENGTH 4 |
Definition at line 219 of file remote-mips.c.
Referenced by mips_cksum(), mips_receive_header(), mips_receive_packet(), and mips_send_packet().
#define HDR_OFFSET 0x40 |
Definition at line 212 of file remote-mips.c.
#define HDR_SET_LEN1 | ( | data, | |
len, | |||
seq | |||
) | (HDR_OFFSET + ((len) & 0x3f)) |
Definition at line 232 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_SET_SEQ | ( | data, | |
len, | |||
seq | |||
) | (HDR_OFFSET + (seq)) |
Definition at line 233 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
Definition at line 227 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define HDR_SET_TYPE_LEN | ( | data, | |
len, | |||
seq | |||
) |
Definition at line 228 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define LOAD_CMD "load -b -s tty0\r" |
Definition at line 277 of file remote-mips.c.
Referenced by init_ppc_cmds(), mips_load_srec(), and pmon_start_download().
#define LOAD_CMD_UDP "load -b -s udp\r" |
Definition at line 278 of file remote-mips.c.
Referenced by pmon_start_download().
#define MAX_LSI_BREAKPOINTS 256 |
Definition at line 390 of file remote-mips.c.
Referenced by lsi_open(), mips_can_use_watchpoint(), mips_common_breakpoint(), and mips_wait().
#define MAXRECSIZE (550) |
Definition at line 3097 of file remote-mips.c.
Referenced by pmon_load_fast(), and pmon_make_fastrec().
#define REGNO_OFFSET 96 |
Definition at line 1976 of file remote-mips.c.
Referenced by mips_map_regno().
#define SEQ_MODULOS (64) |
Definition at line 274 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define SYN '\026' |
Definition at line 207 of file remote-mips.c.
Referenced by mips_receive_header(), mips_receive_packet(), and mips_send_packet().
#define TRLR_CHECK | ( | ch | ) | (((ch) & TRLR_OFFSET) == TRLR_OFFSET) |
Definition at line 264 of file remote-mips.c.
Referenced by mips_receive_trailer().
#define TRLR_GET_CKSUM | ( | trlr | ) |
Definition at line 268 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define TRLR_INDX_CSUM1 0 |
Definition at line 253 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define TRLR_INDX_CSUM2 1 |
Definition at line 254 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define TRLR_INDX_CSUM3 2 |
Definition at line 255 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define TRLR_LENGTH 3 |
Definition at line 256 of file remote-mips.c.
Referenced by mips_receive_packet(), mips_receive_trailer(), and mips_send_packet().
#define TRLR_OFFSET HDR_OFFSET |
Definition at line 250 of file remote-mips.c.
#define TRLR_SET_CSUM1 | ( | cksum | ) | (TRLR_OFFSET + (((cksum) >> 12) & 0x3f)) |
Definition at line 259 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define TRLR_SET_CSUM2 | ( | cksum | ) | (TRLR_OFFSET + (((cksum) >> 6) & 0x3f)) |
Definition at line 260 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define TRLR_SET_CSUM3 | ( | cksum | ) | (TRLR_OFFSET + (((cksum) ) & 0x3f)) |
Definition at line 261 of file remote-mips.c.
Referenced by mips_receive_packet(), and mips_send_packet().
#define TYPE_LEN_ACK TYPE_LEN_DA_BIT |
Definition at line 224 of file remote-mips.c.
#define TYPE_LEN_DA_BIT 0x20 |
Definition at line 222 of file remote-mips.c.
#define TYPE_LEN_DATA 0 |
Definition at line 223 of file remote-mips.c.
#define W_MSK |
Definition at line 404 of file remote-mips.c.
#define W_QAL |
Definition at line 408 of file remote-mips.c.
#define W_VAL |
Definition at line 406 of file remote-mips.c.
#define W_WARN |
Definition at line 402 of file remote-mips.c.
Referenced by mips_check_lsi_error().
enum break_type |
Enumerator | |
---|---|
BREAK_WRITE | |
BREAK_READ | |
BREAK_ACCESS | |
BREAK_FETCH | |
BREAK_UNUSED |
Definition at line 45 of file remote-mips.c.
enum mips_monitor_type |
Enumerator | |
---|---|
MON_IDT | |
MON_PMON | |
MON_DDB | |
MON_LSI | |
MON_ROCKHOPPER | |
MON_LAST |
Definition at line 286 of file remote-mips.c.
void _initialize_remote_mips | ( | void | ) |
Definition at line 3626 of file remote-mips.c.
References _, add_com(), add_setshow_boolean_cmd(), add_setshow_string_cmd(), add_setshow_zinteger_cmd(), add_target(), class_obscure, ddb_open(), ddb_ops, default_child_has_all_memory(), default_child_has_execution(), default_child_has_memory(), default_child_has_registers(), default_child_has_stack(), lsi_open(), lsi_ops, mask_address_p, mips_can_use_watchpoint(), mips_close(), mips_create_inferior(), mips_detach(), mips_fetch_registers(), mips_files_info(), mips_insert_breakpoint(), mips_insert_watchpoint(), mips_kill(), mips_load(), mips_monitor_prompt, mips_mourn_inferior(), mips_open(), mips_ops, mips_pid_to_str(), mips_prepare_to_store(), mips_receive_wait, mips_remove_breakpoint(), mips_remove_watchpoint(), mips_resume(), mips_retransmit_wait, mips_stopped_by_watchpoint(), mips_store_registers(), mips_syn_garbage, mips_thread_alive(), mips_wait(), mips_xfer_partial(), monitor_warnings, no_class, OPS_MAGIC, pmon_command(), pmon_open(), pmon_ops, process_stratum, ptid_build(), rockhopper_open(), rockhopper_ops, serial_log_command(), setlist, showlist, target_ops::to_can_use_hw_breakpoint, target_ops::to_close, target_ops::to_create_inferior, target_ops::to_detach, target_ops::to_doc, target_ops::to_fetch_registers, target_ops::to_files_info, target_ops::to_has_all_memory, target_ops::to_has_execution, target_ops::to_has_memory, target_ops::to_has_registers, target_ops::to_has_stack, target_ops::to_insert_breakpoint, target_ops::to_insert_watchpoint, target_ops::to_kill, target_ops::to_load, target_ops::to_log_command, target_ops::to_longname, target_ops::to_magic, target_ops::to_mourn_inferior, target_ops::to_open, target_ops::to_pid_to_str, target_ops::to_prepare_to_store, target_ops::to_remove_breakpoint, target_ops::to_remove_watchpoint, target_ops::to_resume, target_ops::to_shortname, target_ops::to_stopped_by_watchpoint, target_ops::to_store_registers, target_ops::to_stratum, target_ops::to_thread_alive, target_ops::to_wait, and target_ops::to_xfer_partial.
Definition at line 2415 of file remote-mips.c.
References gdb.printing::long.
Referenced by mips_common_breakpoint().
|
static |
Definition at line 458 of file remote-mips.c.
References mips_is_open, serial_close(), tftp_in_use, and udp_in_use.
Referenced by mips_close(), mips_error(), and mips_kill().
|
static |
Definition at line 1534 of file remote-mips.c.
References _, add_thread_silent(), baud_rate, current_inferior(), deprecated_mips_set_processor_regs_hack(), do_cleanups(), error(), gdb_buildargv(), get_current_regcache(), get_selected_frame(), inferior_appeared(), inferior_ptid, make_cleanup_freeargv(), mips_initialize(), mips_is_open, mips_monitor, mips_monitor_prompt, perror_with_name(), print_stack_frame(), printf_unfiltered(), ptid_get_pid(), push_target(), regcache_read_pc(), registers_changed(), reinit_frame_cache(), remote_mips_ptid, serial_close(), serial_open(), serial_raw(), serial_setbaudrate(), SRC_AND_LOC, stop_pc, target_preopen(), tftp_in_use, tftp_localname, tftp_name, udp_in_use, unpush_target(), and xfree().
Referenced by ddb_open(), lsi_open(), mips_open(), pmon_open(), and rockhopper_open().
Definition at line 1695 of file remote-mips.c.
References common_open(), ddb_ops, and MON_DDB.
Referenced by _initialize_remote_mips().
Definition at line 508 of file remote-mips.c.
References fprintf_unfiltered(), and fputc_unfiltered().
Referenced by fputs_readable(), mips_expect_timeout(), and mips_receive_header().
Definition at line 527 of file remote-mips.c.
References fputc_readable().
Referenced by mips_expect_timeout().
Definition at line 1711 of file remote-mips.c.
References BREAK_UNUSED, common_open(), lsi_breakpoints, lsi_ops, MAX_LSI_BREAKPOINTS, and MON_LSI.
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2404 of file remote-mips.c.
References MAX_LSI_BREAKPOINTS, and target_shortname.
Referenced by _initialize_remote_mips().
Definition at line 2498 of file remote-mips.c.
References lsi_error::code, err, fprintf_unfiltered(), gdb_stderr, monitor_warnings, paddress(), lsi_error::string, target_gdbarch(), and W_WARN.
Referenced by mips_common_breakpoint().
Definition at line 818 of file remote-mips.c.
References HDR_LENGTH, and len.
Referenced by mips_receive_packet(), and mips_send_packet().
|
static |
Definition at line 2484 of file remote-mips.c.
References mips_common_breakpoint().
Referenced by mips_initialize(), mips_remove_breakpoint(), and mips_remove_watchpoint().
|
static |
Definition at line 1725 of file remote-mips.c.
References close_ports(), generic_mourn_inferior(), mips_exit_debug(), and mips_is_open.
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2567 of file remote-mips.c.
References _, lsi_breakpoint_info::addr, BREAK_ACCESS, BREAK_FETCH, BREAK_READ, BREAK_UNUSED, BREAK_WRITE, calculate_mask(), DATA_MAXLEN, flags, fprintf_unfiltered(), gdb_stderr, gdbarch_addr_bit(), gdbarch_addr_bits_remove(), internal_error(), len, lsi_breakpoint_info::len, lsi_breakpoints, MAX_LSI_BREAKPOINTS, mips_check_lsi_error(), mips_error(), mips_monitor, mips_receive_packet(), mips_receive_wait, mips_send_packet(), MON_DDB, MON_LSI, paddress(), phex_nz(), target_gdbarch(), type, lsi_breakpoint_info::type, and warning().
Referenced by mips_clear_breakpoint(), and mips_set_breakpoint().
|
static |
Definition at line 2329 of file remote-mips.c.
References _, error(), exec_bfd, execute_command(), get_current_regcache(), init_wait_for_inferior(), regcache_write_pc(), and warning().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 1741 of file remote-mips.c.
References _, error(), printf_unfiltered(), and unpush_target().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 1331 of file remote-mips.c.
References _, DATA_MAXLEN, gdb_usleep(), mips_error(), mips_expect(), mips_monitor, mips_receive_packet(), mips_receive_seq, mips_send_command(), mips_send_seq, MON_IDT, and serial_write().
Referenced by mips_initialize(), and mips_wait().
|
static |
Definition at line 477 of file remote-mips.c.
References _, close_ports(), gdb_flush(), gdb_stderr, gdb_stdout, inferior_ptid, make_cleanup(), null_ptid, ptid_equal(), TARGET_CLOSE_ERROR, target_mourn_inferior(), target_terminal_ours(), throw_verror(), wrap_here(), and xfree().
Referenced by mips_common_breakpoint(), mips_enter_debug(), mips_fetch_registers(), mips_initialize(), mips_readchar(), mips_receive_header(), mips_receive_packet(), mips_request(), mips_send_packet(), mips_store_registers(), and mips_wait().
|
static |
Definition at line 1310 of file remote-mips.c.
References mips_exiting.
Referenced by mips_exit_debug().
|
static |
Definition at line 1363 of file remote-mips.c.
References do_cleanups(), err, make_cleanup(), mips_exit_cleanups(), mips_exiting, mips_expect(), mips_monitor, mips_monitor_prompt, mips_need_reply, mips_receive_wait, mips_request(), MON_IDT, and MON_ROCKHOPPER.
Referenced by mips_close(), mips_load(), and mips_wait().
Definition at line 623 of file remote-mips.c.
References mips_expect_timeout(), and remote_timeout.
Referenced by mips_enter_debug(), mips_exit_debug(), mips_expect_download(), mips_initialize(), mips_send_command(), pmon_check_entry_address(), pmon_check_total(), and pmon_start_download().
|
static |
Definition at line 3240 of file remote-mips.c.
References fprintf_unfiltered(), gdb_stderr, mips_expect(), tftp_in_use, and tftp_localname.
Referenced by pmon_check_total(), and pmon_end_download().
Definition at line 567 of file remote-mips.c.
References fprintf_unfiltered(), fputc_readable(), fputs_readable(), gdb_stdlog, immediate_quit, QUIT, remote_debug, serial_readchar(), SERIAL_TIMEOUT, and string.
Referenced by mips_expect(), and pmon_check_entry_address().
|
static |
Definition at line 2006 of file remote-mips.c.
References _, gdbarch::byte_order, err, gdbarch_byte_order(), gdbarch_deprecated_fp_regnum(), gdbarch_num_regs(), get_regcache_arch(), mips_error(), mips_map_regno(), mips_monitor, mips_receive_wait, mips_request(), mips_set_register(), MIPS_ZERO_REGNUM, MON_DDB, MON_ROCKHOPPER, and safe_strerror().
Referenced by _initialize_remote_mips().
Definition at line 2094 of file remote-mips.c.
References err, mips_receive_wait, and mips_request().
Referenced by mips_xfer_memory().
|
static |
Definition at line 2261 of file remote-mips.c.
References printf_unfiltered().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 1400 of file remote-mips.c.
References _, BREAK_UNUSED, do_cleanups(), err, make_cleanup(), mips_clear_breakpoint(), mips_enter_debug(), mips_error(), mips_expect(), mips_initialize_cleanups(), mips_initializing, mips_make_srec(), mips_monitor, mips_monitor_prompt, mips_receive_wait, mips_request(), mips_send_command(), mips_wait_flag, MON_IDT, MON_LSI, monitor_supports_breakpoints, serial_flush_input(), serial_flush_output(), serial_readchar(), serial_send_break(), serial_write(), and warning().
Referenced by common_open(), mips_load(), and mips_readchar().
|
static |
Definition at line 1302 of file remote-mips.c.
References mips_initializing.
Referenced by mips_initialize().
|
static |
Definition at line 2373 of file remote-mips.c.
References BREAK_FETCH, memory_insert_breakpoint(), MIPS_INSN32_SIZE, mips_set_breakpoint(), monitor_supports_breakpoints, bp_target_info::placed_address, and bp_target_info::reqstd_address.
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2439 of file remote-mips.c.
References mips_set_breakpoint().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2272 of file remote-mips.c.
References _, close_ports(), interrupt_count, mips_is_open, mips_wait_flag, printf_unfiltered(), query(), quit(), remote_debug, serial_send_break(), serial_write(), target_mourn_inferior(), target_terminal_inferior(), and target_terminal_ours().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 3543 of file remote-mips.c.
References _, error(), exec_bfd, get_current_regcache(), get_regcache_arch(), mips_exit_debug(), mips_initialize(), mips_load_srec(), mips_monitor, MON_IDT, pmon_load_fast(), regcache_invalidate(), and regcache_write_pc().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2799 of file remote-mips.c.
References deprecated_ui_load_progress_hook, do_cleanups(), gdb_bfd_open(), gdb_flush(), gdb_stdout, hashmark, LOAD_CMD, make_cleanup_bfd_unref(), min, mips_make_srec(), mips_send_command(), printf_filtered(), putchar_unfiltered(), send_srec(), and serial_flush_input().
Referenced by mips_load().
|
static |
Definition at line 2926 of file remote-mips.c.
References type.
Referenced by mips_initialize(), and mips_load_srec().
Definition at line 1979 of file remote-mips.c.
References mips_regnum::fp0, mips_regnum(), and REGNO_OFFSET.
Referenced by mips_fetch_registers(), and mips_store_registers().
|
static |
Definition at line 2356 of file remote-mips.c.
References unpush_target().
Referenced by _initialize_remote_mips().
Definition at line 1662 of file remote-mips.c.
References common_open(), gdbarch_bfd_arch_info(), mips_ops, MON_IDT, and target_gdbarch().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 3588 of file remote-mips.c.
References normal_pid_to_str(), ptid_equal(), and xsnprintf().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2058 of file remote-mips.c.
Referenced by _initialize_remote_mips().
Definition at line 643 of file remote-mips.c.
References _, error(), fprintf_unfiltered(), gdb_stdlog, mips_error(), mips_exiting, mips_initialize(), mips_initializing, mips_monitor_prompt, mips_need_reply, remote_debug, safe_strerror(), SERIAL_EOF, SERIAL_ERROR, serial_readchar(), SERIAL_TIMEOUT, target_mourn_inferior(), timeout, and watchdog.
Referenced by mips_receive_header(), mips_receive_packet(), mips_receive_trailer(), mips_send_packet(), and send_srec().
Definition at line 722 of file remote-mips.c.
References _, fputc_readable(), fputc_unfiltered(), gdb_flush(), gdb_stdtarg, HDR_CHECK, HDR_LENGTH, mips_error(), mips_initializing, mips_readchar(), mips_syn_garbage, remote_debug, SERIAL_TIMEOUT, and SYN.
Referenced by mips_receive_packet(), and mips_send_packet().
Definition at line 1009 of file remote-mips.c.
References _, err, fprintf_unfiltered(), gdb_stdlog, HDR_GET_LEN, HDR_GET_SEQ, HDR_INDX_LEN1, HDR_INDX_SEQ, HDR_INDX_SYN, HDR_INDX_TYPE_LEN, HDR_IS_DATA, HDR_LENGTH, HDR_SET_LEN1, HDR_SET_SEQ, HDR_SET_SYN, HDR_SET_TYPE_LEN, len, mips_cksum(), mips_error(), mips_readchar(), mips_receive_header(), mips_receive_seq, mips_receive_trailer(), printf_unfiltered(), remote_debug, safe_strerror(), SEQ_MODULOS, SERIAL_TIMEOUT, serial_write(), SYN, TRLR_GET_CKSUM, TRLR_INDX_CSUM1, TRLR_INDX_CSUM2, TRLR_INDX_CSUM3, TRLR_LENGTH, TRLR_SET_CSUM1, TRLR_SET_CSUM2, and TRLR_SET_CSUM3.
Referenced by mips_common_breakpoint(), mips_enter_debug(), mips_request(), and pmon_command().
|
static |
Definition at line 795 of file remote-mips.c.
References mips_readchar(), SERIAL_TIMEOUT, TRLR_CHECK, and TRLR_LENGTH.
Referenced by mips_receive_packet(), and mips_send_packet().
|
static |
Definition at line 2389 of file remote-mips.c.
References BREAK_FETCH, memory_remove_breakpoint(), mips_clear_breakpoint(), MIPS_INSN32_SIZE, monitor_supports_breakpoints, and bp_target_info::placed_address.
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2452 of file remote-mips.c.
References mips_clear_breakpoint().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 1226 of file remote-mips.c.
References _, DATA_MAXLEN, gdbarch_addr_bit(), internal_error(), len, mips_error(), mips_need_reply, mips_receive_packet(), mips_send_packet(), phex_nz(), read_hex_value(), and target_gdbarch().
Referenced by mips_exit_debug(), mips_fetch_registers(), mips_fetch_word(), mips_initialize(), mips_resume(), mips_store_registers(), mips_store_word(), and mips_wait().
|
static |
Definition at line 1757 of file remote-mips.c.
References err, mips_monitor, mips_receive_wait, mips_request(), and MON_LSI.
Referenced by _initialize_remote_mips().
Definition at line 1319 of file remote-mips.c.
References mips_expect(), mips_monitor_prompt, and serial_write().
Referenced by mips_enter_debug(), mips_initialize(), mips_load_srec(), pmon_end_download(), pmon_load_fast(), and pmon_start_download().
Definition at line 844 of file remote-mips.c.
References _, DATA_MAXLEN, err, fprintf_unfiltered(), gdb_stdlog, HDR_GET_LEN, HDR_GET_SEQ, HDR_INDX_LEN1, HDR_INDX_SEQ, HDR_INDX_SYN, HDR_INDX_TYPE_LEN, HDR_IS_DATA, HDR_LENGTH, HDR_SET_LEN1, HDR_SET_SEQ, HDR_SET_SYN, HDR_SET_TYPE_LEN, len, mips_cksum(), mips_error(), mips_readchar(), mips_receive_header(), mips_receive_trailer(), mips_retransmit_wait, mips_send_retries, mips_send_seq, remote_debug, remote_timeout, safe_strerror(), SEQ_MODULOS, SERIAL_TIMEOUT, serial_write(), SYN, TRLR_GET_CKSUM, TRLR_INDX_CSUM1, TRLR_INDX_CSUM2, TRLR_INDX_CSUM3, TRLR_LENGTH, TRLR_SET_CSUM1, TRLR_SET_CSUM2, and TRLR_SET_CSUM3.
Referenced by mips_common_breakpoint(), mips_request(), and pmon_command().
|
static |
Definition at line 2475 of file remote-mips.c.
References mips_common_breakpoint().
Referenced by mips_insert_breakpoint(), and mips_insert_watchpoint().
Definition at line 1792 of file remote-mips.c.
References gdbarch::byte_order, gdbarch_byte_order(), get_current_regcache(), get_regcache_arch(), MAX_REGISTER_SIZE, mips_monitor, MON_ROCKHOPPER, regcache_raw_supply(), register_size(), store_signed_integer(), and store_unsigned_integer().
Referenced by mips_fetch_registers(), and mips_wait().
|
static |
Definition at line 1773 of file remote-mips.c.
Referenced by mips_wait().
|
static |
Definition at line 2466 of file remote-mips.c.
References hit_watchpoint.
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2065 of file remote-mips.c.
References _, err, gdbarch_num_regs(), get_regcache_arch(), mips_error(), mips_map_regno(), mips_monitor, mips_receive_wait, mips_request(), MON_ROCKHOPPER, regcache_cooked_read_unsigned(), and safe_strerror().
Referenced by _initialize_remote_mips().
Definition at line 2114 of file remote-mips.c.
References err, mips_receive_wait, and mips_request().
Referenced by mips_xfer_memory().
|
static |
Definition at line 3575 of file remote-mips.c.
References ptid_equal().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 1820 of file remote-mips.c.
References _, BREAK_FETCH, DATA_MAXLEN, err, find_pc_partial_function(), flags, gdbarch_pc_regnum(), gdbarch_sp_regnum(), get_current_regcache(), get_regcache_arch(), hit_watchpoint, inferior_ptid, target_waitstatus::integer, interrupt_count, target_waitstatus::kind, lsi_breakpoints, MAX_LSI_BREAKPOINTS, mips_enter_debug(), mips_error(), mips_exit_debug(), mips_monitor, mips_need_reply, mips_request(), mips_set_register(), mips_signal_from_protocol(), mips_wait_flag, MON_PMON, read_hex_value(), regcache_read_pc(), safe_strerror(), target_waitstatus::sig, target_shortname, TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED, TARGET_WAITKIND_STOPPED, and target_waitstatus::value.
Referenced by _initialize_remote_mips().
|
static |
Definition at line 2143 of file remote-mips.c.
References gdbarch::byte_order, extract_unsigned_integer(), gdb_flush(), gdb_stdout, gdbarch_byte_order(), len, mask_address_p, mips_fetch_word(), mips_store_word(), printf_unfiltered(), QUIT, status, store_unsigned_integer(), target_gdbarch(), TARGET_XFER_E_IO, TARGET_XFER_OK, and word.
Referenced by mips_xfer_partial().
|
static |
Definition at line 2241 of file remote-mips.c.
References target_ops::beneath, mips_xfer_memory(), TARGET_OBJECT_MEMORY, and target_ops::to_xfer_partial.
Referenced by _initialize_remote_mips().
|
static |
Definition at line 3192 of file remote-mips.c.
References fprintf_unfiltered(), gdb_stderr, remote_timeout, serial_readchar(), SERIAL_TIMEOUT, tftp_in_use, and udp_in_use.
Referenced by pmon_end_download(), and pmon_load_fast().
|
static |
Definition at line 3263 of file remote-mips.c.
References mips_expect(), mips_expect_timeout(), remote_timeout, and tftp_in_use.
Referenced by pmon_end_download().
Definition at line 3278 of file remote-mips.c.
References mips_expect(), and mips_expect_download().
Referenced by pmon_end_download().
Definition at line 3072 of file remote-mips.c.
References pmon_makeb64().
Referenced by pmon_load_fast().
|
static |
Definition at line 3604 of file remote-mips.c.
References DATA_MAXLEN, mips_receive_packet(), mips_receive_wait, mips_send_packet(), and printf_filtered().
Referenced by _initialize_remote_mips().
|
static |
Definition at line 3366 of file remote-mips.c.
References perror_with_name(), serial_write(), tftp_file, tftp_in_use, tftp_localname, and udp_in_use.
Referenced by pmon_load_fast().
Definition at line 3296 of file remote-mips.c.
References mips_expect_download(), mips_monitor, mips_send_command(), MON_LSI, MON_ROCKHOPPER, pmon_check_ack(), pmon_check_entry_address(), pmon_check_total(), tftp_file, tftp_in_use, tftp_localname, tftp_name, xfree(), and xmalloc().
Referenced by pmon_load_fast().
|
static |
Definition at line 3384 of file remote-mips.c.
References BINCHUNK, CHECKSIZE, deprecated_ui_load_progress_hook, do_cleanups(), gdb_bfd_open(), gdb_flush(), gdb_stdout, hashmark, make_cleanup_bfd_unref(), MAXRECSIZE, min, mips_send_command(), pmon_check_ack(), pmon_checkset(), pmon_download(), pmon_end_download(), pmon_make_fastrec(), pmon_makeb64(), pmon_start_download(), pmon_zeroset(), printf_filtered(), putchar_unfiltered(), serial_flush_input(), tftp_in_use, udp_in_use, and xmalloc().
Referenced by mips_load().
|
static |
Definition at line 3128 of file remote-mips.c.
References CHECKSIZE, MAXRECSIZE, pmon_makeb64(), and pmon_zeroset().
Referenced by pmon_load_fast().
Definition at line 2997 of file remote-mips.c.
References encoding, fprintf_unfiltered(), and gdb_stderr.
Referenced by pmon_checkset(), pmon_load_fast(), pmon_make_fastrec(), and pmon_zeroset().
Definition at line 1687 of file remote-mips.c.
References common_open(), MON_PMON, and pmon_ops.
Referenced by _initialize_remote_mips().
|
static |
Definition at line 3216 of file remote-mips.c.
References LOAD_CMD, LOAD_CMD_UDP, mips_expect(), mips_send_command(), perror_with_name(), tftp_file, tftp_in_use, tftp_localname, and udp_in_use.
Referenced by pmon_load_fast().
|
static |
Definition at line 3045 of file remote-mips.c.
References pmon_makeb64().
Referenced by pmon_load_fast(), and pmon_make_fastrec().
Definition at line 540 of file remote-mips.c.
Referenced by mips_request(), and mips_wait().
Definition at line 1703 of file remote-mips.c.
References common_open(), MON_ROCKHOPPER, and rockhopper_ops.
Referenced by _initialize_remote_mips().
Definition at line 2767 of file remote-mips.c.
References _, error(), fprintf_unfiltered(), gdb_stderr, mips_readchar(), paddress(), remote_timeout, SERIAL_TIMEOUT, serial_write(), and target_gdbarch().
Referenced by mips_load_srec().
initialize_file_ftype _initialize_remote_mips |
|
static |
Definition at line 322 of file remote-mips.c.
struct target_ops ddb_ops |
Referenced by _initialize_remote_mips(), and ddb_open().
|
static |
Definition at line 2988 of file remote-mips.c.
Referenced by ada_delta(), c_emit_char(), c_printstr(), decode_frame_entry_1(), f_emit_char(), f_get_encoding(), gdbscm_value_to_lazy_string(), gdbscm_value_to_string(), java_emit_char(), java_get_encoding(), pmon_makeb64(), print_children(), print_string_repr(), read_base_type(), scaling_factor(), valpy_string(), and varobj_value_get_print_value().
|
static |
Definition at line 384 of file remote-mips.c.
Referenced by mips_stopped_by_watchpoint(), and mips_wait().
|
static |
Definition at line 369 of file remote-mips.c.
Referenced by mips_kill(), and mips_wait().
struct lsi_breakpoint_info lsi_breakpoints[MAX_LSI_BREAKPOINTS] |
Referenced by lsi_open(), mips_common_breakpoint(), and mips_wait().
struct lsi_error lsi_error_table[] |
struct target_ops mips_ops pmon_ops ddb_ops rockhopper_ops lsi_ops |
Definition at line 284 of file remote-mips.c.
Referenced by _initialize_remote_mips(), and lsi_open().
struct lsi_error lsi_warning_table[] |
Definition at line 426 of file remote-mips.c.
|
static |
Definition at line 2140 of file remote-mips.c.
Referenced by _initialize_remote_mips(), and mips_xfer_memory().
|
static |
Definition at line 354 of file remote-mips.c.
|
static |
Definition at line 328 of file remote-mips.c.
Referenced by mips_exit_cleanups(), mips_exit_debug(), and mips_readchar().
|
static |
Definition at line 325 of file remote-mips.c.
Referenced by mips_initialize(), mips_initialize_cleanups(), mips_readchar(), and mips_receive_header().
|
static |
Definition at line 319 of file remote-mips.c.
Referenced by close_ports(), common_open(), mips_close(), and mips_kill().
|
static |
Definition at line 302 of file remote-mips.c.
Referenced by common_open(), mips_common_breakpoint(), mips_enter_debug(), mips_exit_debug(), mips_fetch_registers(), mips_initialize(), mips_load(), mips_resume(), mips_set_register(), mips_store_registers(), mips_wait(), and pmon_end_download().
|
static |
Definition at line 316 of file remote-mips.c.
Referenced by _initialize_remote_mips(), common_open(), mips_exit_debug(), mips_initialize(), mips_readchar(), and mips_send_command().
|
static |
Definition at line 351 of file remote-mips.c.
Referenced by mips_exit_debug(), mips_readchar(), mips_request(), and mips_wait().
struct target_ops mips_ops |
Referenced by _initialize_remote_mips(), and mips_open().
|
static |
Definition at line 334 of file remote-mips.c.
Referenced by mips_enter_debug(), and mips_receive_packet().
|
static |
Definition at line 347 of file remote-mips.c.
Referenced by _initialize_remote_mips(), mips_common_breakpoint(), mips_exit_debug(), mips_fetch_registers(), mips_fetch_word(), mips_initialize(), mips_resume(), mips_store_registers(), mips_store_word(), and pmon_command().
|
static |
Definition at line 337 of file remote-mips.c.
Referenced by _initialize_remote_mips(), and mips_send_packet().
|
static |
Definition at line 340 of file remote-mips.c.
Referenced by mips_send_packet().
|
static |
Definition at line 331 of file remote-mips.c.
Referenced by mips_enter_debug(), and mips_send_packet().
|
static |
Definition at line 344 of file remote-mips.c.
Referenced by _initialize_remote_mips(), and mips_receive_header().
|
static |
Definition at line 372 of file remote-mips.c.
Referenced by mips_initialize(), mips_kill(), and mips_wait().
|
static |
Definition at line 375 of file remote-mips.c.
Referenced by mips_initialize(), mips_insert_breakpoint(), and mips_remove_breakpoint().
|
static |
Definition at line 446 of file remote-mips.c.
Referenced by _initialize_remote_mips(), and mips_check_lsi_error().
struct target_ops pmon_ops |
Referenced by _initialize_remote_mips(), and pmon_open().
|
static |
Definition at line 452 of file remote-mips.c.
Referenced by common_open().
struct target_ops rockhopper_ops |
Referenced by _initialize_remote_mips(), and rockhopper_open().
|
static |
Definition at line 365 of file remote-mips.c.
Referenced by pmon_download(), pmon_end_download(), and pmon_start_download().
|
static |
Definition at line 364 of file remote-mips.c.
Referenced by close_ports(), common_open(), mips_expect_download(), pmon_check_ack(), pmon_check_entry_address(), pmon_download(), pmon_end_download(), pmon_load_fast(), and pmon_start_download().
|
static |
Definition at line 363 of file remote-mips.c.
Referenced by common_open(), mips_expect_download(), pmon_download(), pmon_end_download(), and pmon_start_download().
|
static |
Definition at line 362 of file remote-mips.c.
Referenced by common_open(), and pmon_end_download().
|
static |
Definition at line 357 of file remote-mips.c.
|
static |
Definition at line 358 of file remote-mips.c.
Referenced by close_ports(), common_open(), pmon_check_ack(), pmon_download(), pmon_load_fast(), and pmon_start_download().