GDB (xrefs)
Defines | Functions | Variables
/home/stan/gdb/src/gdb/m32r-rom.c File Reference
#include "defs.h"
#include "gdbcore.h"
#include "target.h"
#include "exceptions.h"
#include "monitor.h"
#include "serial.h"
#include "symtab.h"
#include "command.h"
#include "gdbcmd.h"
#include "symfile.h"
#include <sys/time.h>
#include <time.h>
#include "gdb_string.h"
#include "objfiles.h"
#include "inferior.h"
#include <ctype.h>
#include "regcache.h"
#include "gdb_bfd.h"
#include "cli/cli-utils.h"
#include <sys/types.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>

Go to the source code of this file.

Defines

#define PSW_REGNUM   16
#define SPI_REGNUM   18
#define SPU_REGNUM   19
#define ACCL_REGNUM   22
#define ACCH_REGNUM   23

Functions

static void m32r_load_section (bfd *abfd, asection *s, void *obj)
static int m32r_load_1 (void *dummy)
static void m32r_load (char *filename, int from_tty)
static void m32r_load_gen (char *filename, int from_tty)
static void m32r_open (char *args, int from_tty)
static void mon2000_open (char *args, int from_tty)
static void m32r_supply_register (struct regcache *regcache, char *regname, int regnamelen, char *val, int vallen)
static void init_m32r_cmds (void)
static void init_mon2000_cmds (void)
static void m32r_upload_command (char *args, int from_tty)
void _initialize_m32r_rom (void)

Variables

static char * board_addr
static char * server_addr
static char * download_path
static char * m32r_regnames []
static struct target_ops m32r_ops
static char * m32r_inits [] = { "\r", NULL }
static struct monitor_ops m32r_cmds
static struct target_ops mon2000_ops
static struct monitor_ops mon2000_cmds
initialize_file_ftype _initialize_m32r_rom

Define Documentation

#define ACCH_REGNUM   23

Definition at line 69 of file m32r-rom.c.

Referenced by m32r_supply_register().

#define ACCL_REGNUM   22

Definition at line 68 of file m32r-rom.c.

Referenced by m32r_supply_register().

#define PSW_REGNUM   16

Definition at line 65 of file m32r-rom.c.

Referenced by m32r_supply_register().

#define SPI_REGNUM   18

Definition at line 66 of file m32r-rom.c.

Referenced by m32r_supply_register().

#define SPU_REGNUM   19

Definition at line 67 of file m32r-rom.c.

Referenced by m32r_supply_register().


Function Documentation

void _initialize_m32r_rom ( void  )
static void init_m32r_cmds ( void  ) [static]
static void init_mon2000_cmds ( void  ) [static]
static void m32r_load ( char *  filename,
int  from_tty 
) [static]
static int m32r_load_1 ( void *  dummy) [static]

Definition at line 110 of file m32r-rom.c.

References m32r_load_section().

Referenced by m32r_load().

static void m32r_load_gen ( char *  filename,
int  from_tty 
) [static]

Definition at line 199 of file m32r-rom.c.

References generic_load().

Referenced by _initialize_m32r_rom().

static void m32r_load_section ( bfd *  abfd,
asection *  s,
void *  obj 
) [static]
static void m32r_open ( char *  args,
int  from_tty 
) [static]

Definition at line 365 of file m32r-rom.c.

References m32r_cmds, and monitor_open().

Referenced by _initialize_m32r_rom().

static void m32r_supply_register ( struct regcache regcache,
char *  regname,
int  regnamelen,
char *  val,
int  vallen 
) [static]
static void m32r_upload_command ( char *  args,
int  from_tty 
) [static]
static void mon2000_open ( char *  args,
int  from_tty 
) [static]

Definition at line 425 of file m32r-rom.c.

References mon2000_cmds, and monitor_open().

Referenced by _initialize_m32r_rom().


Variable Documentation

char* board_addr [static]

Definition at line 59 of file m32r-rom.c.

Referenced by _initialize_m32r_rom(), and m32r_upload_command().

char* download_path [static]

Definition at line 61 of file m32r-rom.c.

Referenced by _initialize_m32r_rom(), and m32r_upload_command().

struct monitor_ops m32r_cmds [static]

Definition at line 313 of file m32r-rom.c.

Referenced by init_m32r_cmds(), and m32r_open().

char* m32r_inits[] = { "\r", NULL } [static]

Definition at line 311 of file m32r-rom.c.

Referenced by init_m32r_cmds(), and init_mon2000_cmds().

struct target_ops m32r_ops [static]

Definition at line 309 of file m32r-rom.c.

Referenced by _initialize_m32r_rom(), and init_m32r_cmds().

char* m32r_regnames[] [static]
Initial value:
  { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",
  "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15",
  "psw", "cbr", "spi", "spu", "bpc", "pc", "accl", "acch",
}

Definition at line 212 of file m32r-rom.c.

Referenced by init_m32r_cmds(), init_mon2000_cmds(), and m32r_supply_register().

struct monitor_ops mon2000_cmds [static]

Definition at line 373 of file m32r-rom.c.

Referenced by init_mon2000_cmds(), and mon2000_open().

struct target_ops mon2000_ops [static]

Definition at line 372 of file m32r-rom.c.

Referenced by _initialize_m32r_rom(), and init_mon2000_cmds().

char* server_addr [static]

Definition at line 60 of file m32r-rom.c.

Referenced by _initialize_m32r_rom(), and m32r_upload_command().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines