Sun Aug 10 16:49:09 1997 Geoffrey Noer <noer@cygnus.com>
authorGeoffrey Noer <noer@cygnus>
Mon, 11 Aug 1997 02:04:16 +0000 (02:04 +0000)
committerGeoffrey Noer <noer@cygnus>
Mon, 11 Aug 1997 02:04:16 +0000 (02:04 +0000)
        * ocd.c: move ocd_write_bytes proto to ocd.h since it is used
        by ppc-bdm.c, use OCD_LOG_FILE to help debugging, define
        BDM_BREAKPOINT if not defined in tm.h
        (ocd_error): add new error cases
        (ocd_start_remote): send the OCD_INIT command before
        OCD_AYT and OCD_GET_VERSION calls, 80 was correct speed after all
        (ocd_write_bytes): no longer static
        (ocd_insert_breakpoint): no longer static
        (ocd_remove_breakpoint): new
        * ocd.h: add protos for ocd_write_bytes, ocd_insert_breakpoint,
        and ocd_remove_breakpoint
        * ppc-bdm.c: change bdm_ppc_ops so we call ocd_insert_breakpoint
        and ocd_remove_breakpoint instead of memory_insert_breakpoint
        and memory_remove_breakpoint.
        (bdm_ppc_open): after calling ocd_open, modify DER
        register so interrupts will drop us into debugging mode, finally
        disable the watchdog timer on the board so we don't leave BDM
        mode unexpectedly.

gdb/ChangeLog
gdb/ocd.c

index 2adee78bbbf9e4b37e793cb04e6db2580b0b3e46..f3f1eddd41610289eda2058cd259b785c2f67eed 100644 (file)
@@ -9,7 +9,7 @@ Sun Aug 10 16:49:09 1997  Geoffrey Noer  <noer@cygnus.com>
        BDM_BREAKPOINT if not defined in tm.h
        (ocd_error): add new error cases
        (ocd_start_remote): send the OCD_INIT command before
-       OCD_AYT and OCD_GET_VERSION calls
+       OCD_AYT and OCD_GET_VERSION calls, 80 was correct speed after all
        (ocd_write_bytes): no longer static
        (ocd_insert_breakpoint): no longer static
        (ocd_remove_breakpoint): new
index ad575bc6bdc434bd3712365d686aefaf48ab153c..b0463b22d0e3485c6358d3241faef268ab760e4a 100644 (file)
--- a/gdb/ocd.c
+++ b/gdb/ocd.c
@@ -158,7 +158,7 @@ ocd_start_remote (dummy)
 
   SERIAL_SEND_BREAK (ocd_desc); /* Wake up the wiggler */
 
-  speed = 0; /* 80;                    /* Divide clock by 4000 */
+  speed = 80;                  /* Divide clock by 4000 */
 
   buf[0] = OCD_INIT;
   buf[1] = speed >> 8;
@@ -1283,7 +1283,7 @@ ocd_load (args, from_tty)
    not yet supported fully */
    
 #ifndef BDM_BREAKPOINT
-#define BDM_BREAKPOINT 0x4a, 0xfa /* BGND insn on CPU32*/
+#define BDM_BREAKPOINT {0x0,0x0,0x0,0x0} /* For ppc 8xx */
 #endif
 
 /* BDM (at least on CPU32) uses a different breakpoint */
This page took 0.029059 seconds and 4 git commands to generate.