GDB (xrefs)
Macros | Functions | Variables
/tmp/gdb-7.10/gdb/m32r-rom.c File Reference
#include "defs.h"
#include "gdbcore.h"
#include "target.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 "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.

Macros

#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 (struct target_ops *self, const char *filename, 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 m32r_open (const char *args, int from_tty)
 
static void init_mon2000_cmds (void)
 
static void mon2000_open (const char *args, int from_tty)
 
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
 

Macro Definition Documentation

#define ACCH_REGNUM   23

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

Referenced by m32r_supply_register().

#define ACCL_REGNUM   22

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

Referenced by m32r_supply_register().

#define PSW_REGNUM   16

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

Referenced by m32r_supply_register().

#define SPI_REGNUM   18

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

Referenced by m32r_supply_register().

#define SPU_REGNUM   19

Definition at line 65 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 108 of file m32r-rom.c.

References m32r_load_section().

Referenced by m32r_load().

static void m32r_load_gen ( struct target_ops self,
const char *  filename,
int  from_tty 
)
static

Definition at line 197 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 ( const char *  args,
int  from_tty 
)
static

Definition at line 360 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 ( const char *  args,
int  from_tty 
)
static

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

References mon2000_cmds, and monitor_open().

Referenced by _initialize_m32r_rom().

Variable Documentation

initialize_file_ftype _initialize_m32r_rom
char* board_addr
static

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

Referenced by _initialize_m32r_rom(), and m32r_upload_command().

char* download_path
static

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

Referenced by _initialize_m32r_rom(), and m32r_upload_command().

struct monitor_ops m32r_cmds
static

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

Referenced by init_m32r_cmds(), and m32r_open().

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

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

Referenced by init_m32r_cmds(), and init_mon2000_cmds().

struct target_ops m32r_ops
static

Definition at line 304 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 207 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 368 of file m32r-rom.c.

Referenced by init_mon2000_cmds(), and mon2000_open().

struct target_ops mon2000_ops
static

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

Referenced by _initialize_m32r_rom(), and init_mon2000_cmds().

char* server_addr
static

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

Referenced by _initialize_m32r_rom(), and m32r_upload_command().