mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
Mon Aug 11 16:22:36 1997 Geoffrey Noer <noer@cygnus.com>
* ocd.c (ocd_insert_breakpoint, ocd_remove_breakpoint): macro BDM_BREAKPOINT already has braces around it, remove erroneous ones. * ser-ocd.c (ocd_write): conditionalize on _WIN32 instead of __CYGWIN32__ * config/powerpc/tm-ppc-eabi.h: remove BDM_NUM_REGS, BDM_REGMAP * ppc-bdm.c: move BDM_NUM_REGS, BDM_REGMAP here from tm.h file, fill in doc fields of bdm_ppc_ops. (bdm_ppc_fetch_registers): don't ask for invalid registers such as the MQ or floating point regs not present on ppc 8xx boards (bdm_ppc_store_registers): don't write those same invalid registers * config/i386/cygwin32.mh: stop including ocd.o ser-ocd.o * config/powerpc/ppc-eabi.mt: * config/powerpc/ppcle-eabi.mt: * config/powerpc/ppc-sim.mt: * config/powerpc/ppcle-sim.mt: include ser-ocd.o
This commit is contained in:
@ -1278,13 +1278,12 @@ ocd_load (args, from_tty)
|
||||
clear_symtab_users ();
|
||||
}
|
||||
|
||||
/* This should be defined in each targets tm.h file */
|
||||
/* This should be defined for each target */
|
||||
/* But we want to be able to compile this file for some configurations
|
||||
not yet supported fully */
|
||||
|
||||
#ifndef BDM_BREAKPOINT
|
||||
#define BDM_BREAKPOINT {0x0,0x0,0x0,0x0} /* For ppc 8xx */
|
||||
#endif
|
||||
/* #define BDM_BREAKPOINT {0x4a,0xfa} /* BGND insn used for CPU32 */
|
||||
|
||||
/* BDM (at least on CPU32) uses a different breakpoint */
|
||||
|
||||
@ -1293,7 +1292,7 @@ ocd_insert_breakpoint (addr, contents_cache)
|
||||
CORE_ADDR addr;
|
||||
char *contents_cache;
|
||||
{
|
||||
static char break_insn[] = {BDM_BREAKPOINT};
|
||||
static char break_insn[] = BDM_BREAKPOINT;
|
||||
int val;
|
||||
|
||||
val = target_read_memory (addr, contents_cache, sizeof (break_insn));
|
||||
@ -1309,7 +1308,7 @@ ocd_remove_breakpoint (addr, contents_cache)
|
||||
CORE_ADDR addr;
|
||||
char *contents_cache;
|
||||
{
|
||||
static char break_insn[] = {BDM_BREAKPOINT};
|
||||
static char break_insn[] = BDM_BREAKPOINT;
|
||||
int val;
|
||||
|
||||
val = target_write_memory (addr, contents_cache, sizeof (break_insn));
|
||||
|
Reference in New Issue
Block a user