diff options
author | Geoffrey Noer <noer@cygnus> | 1997-08-11 23:40:26 +0000 |
---|---|---|
committer | Geoffrey Noer <noer@cygnus> | 1997-08-11 23:40:26 +0000 |
commit | 2549d2b38572740e9ce0ec4f517f5b8357ea51e0 (patch) | |
tree | a1b126bd98c4c47f49f8b80dbcfe0f5a3d0680a5 /gdb/ocd.c | |
parent | 53a9bb1a3291342c524d17083bddb4c1e07049b9 (diff) | |
download | gdb-2549d2b38572740e9ce0ec4f517f5b8357ea51e0.zip gdb-2549d2b38572740e9ce0ec4f517f5b8357ea51e0.tar.gz gdb-2549d2b38572740e9ce0ec4f517f5b8357ea51e0.tar.bz2 |
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
Diffstat (limited to 'gdb/ocd.c')
-rw-r--r-- | gdb/ocd.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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)); |