aboutsummaryrefslogtreecommitdiff
path: root/gdb/ocd.c
diff options
context:
space:
mode:
authorGeoffrey Noer <noer@cygnus>1997-08-11 23:40:26 +0000
committerGeoffrey Noer <noer@cygnus>1997-08-11 23:40:26 +0000
commit2549d2b38572740e9ce0ec4f517f5b8357ea51e0 (patch)
treea1b126bd98c4c47f49f8b80dbcfe0f5a3d0680a5 /gdb/ocd.c
parent53a9bb1a3291342c524d17083bddb4c1e07049b9 (diff)
downloadgdb-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.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gdb/ocd.c b/gdb/ocd.c
index b0463b2..721ae3f 100644
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -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));