aboutsummaryrefslogtreecommitdiff
path: root/gdb/ocd.h
diff options
context:
space:
mode:
authorGeoffrey Noer <noer@cygnus>1997-08-11 00:01:59 +0000
committerGeoffrey Noer <noer@cygnus>1997-08-11 00:01:59 +0000
commit160db9b2959e9b01ef38cca2a1f211c5ae3c1224 (patch)
treef2986135ad582aab164443ae105115334decb9fd /gdb/ocd.h
parent210e033e19af8168077d51c77f90e19730a9e5bf (diff)
downloadfsf-binutils-gdb-160db9b2959e9b01ef38cca2a1f211c5ae3c1224.zip
fsf-binutils-gdb-160db9b2959e9b01ef38cca2a1f211c5ae3c1224.tar.gz
fsf-binutils-gdb-160db9b2959e9b01ef38cca2a1f211c5ae3c1224.tar.bz2
Sun Aug 10 16:49:09 1997 Geoffrey Noer <noer@cygnus.com>
* 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 (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.
Diffstat (limited to 'gdb/ocd.h')
-rw-r--r--gdb/ocd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ocd.h b/gdb/ocd.h
index d38d889..020d3e2 100644
--- a/gdb/ocd.h
+++ b/gdb/ocd.h
@@ -131,4 +131,9 @@ void ocd_write_bdm_register PARAMS ((int bdm_regno, CORE_ADDR reg));
int ocd_wait PARAMS ((void));
+int ocd_insert_breakpoint PARAMS ((CORE_ADDR addr, char *contents_cache));
+int ocd_remove_breakpoint PARAMS ((CORE_ADDR addr, char *contents_cache));
+
+int ocd_write_bytes PARAMS ((CORE_ADDR memaddr, char *myaddr, int len));
+
#endif /* OCD_H */