From abcf64e73ad0741eaf1ef764e9698bd8bc5d3882 Mon Sep 17 00:00:00 2001 From: Mark Alexander Date: Mon, 28 Apr 1997 16:08:01 +0000 Subject: [PATCH] * breakpoint.c (remove_breakpoint): Pass correct type to target_remove_watchpoint. * target.h: Improve comment for target_{remove,insert}_breakpoint. --- gdb/ChangeLog | 6 ++++++ gdb/target.h | 46 ++++++++++++++++++++++++++++++---------------- 2 files changed, 36 insertions(+), 16 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c6ff4a084e7..5121959a1af 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Mon Apr 28 09:01:59 1997 Mark Alexander + + * breakpoint.c (remove_breakpoint): Pass correct type to + target_remove_watchpoint. + * target.h: Improve comment for target_{remove,insert}_breakpoint. + Sat Apr 26 03:38:02 1997 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) * alpha-tdep.c (heuristic_proc_desc): Increase search limit diff --git a/gdb/target.h b/gdb/target.h index 18dc35db97b..dfc5fed795a 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -426,7 +426,11 @@ target_detach PARAMS ((char *, int)); extern int target_read_string PARAMS ((CORE_ADDR, char **, int, int *)); extern int -target_read_memory PARAMS ((CORE_ADDR, char *, int)); +target_read_memory PARAMS ((CORE_ADDR memaddr, char *myaddr, int len)); + +extern int +target_read_memory_section PARAMS ((CORE_ADDR memaddr, char *myaddr, int len, + asection *bfd_section)); extern int target_read_memory_partial PARAMS ((CORE_ADDR, char *, int, int *)); @@ -440,14 +444,6 @@ xfer_memory PARAMS ((CORE_ADDR, char *, int, int, struct target_ops *)); extern int child_xfer_memory PARAMS ((CORE_ADDR, char *, int, int, struct target_ops *)); -/* Transfer LEN bytes between target address MEMADDR and GDB address MYADDR. - Returns 0 for success, errno code for failure (which includes partial - transfers--if you want a more useful response to partial transfers, try - target_read_memory_partial). */ - -extern int target_xfer_memory PARAMS ((CORE_ADDR memaddr, char *myaddr, - int len, int write)); - /* From exec.c */ extern void @@ -656,9 +652,9 @@ extern char *normal_pid_to_str PARAMS ((int pid)); #define TARGET_CAN_USE_HARDWARE_WATCHPOINT(TYPE,CNT,OTHERTYPE) 0 -/* Set/clear a hardware watchpoint starting at ADDR, for LEN bytes. TYPE is 1 - for read and 2 for read/write accesses. Returns 0 for success, non-zero for - failure. */ +/* Set/clear a hardware watchpoint starting at ADDR, for LEN bytes. TYPE is 0 + for write, 1 for read, and 2 for read/write accesses. Returns 0 for + success, non-zero for failure. */ #define target_remove_watchpoint(ADDR,LEN,TYPE) -1 #define target_insert_watchpoint(ADDR,LEN,TYPE) -1 @@ -739,18 +735,24 @@ memory_remove_breakpoint PARAMS ((CORE_ADDR, char *)); extern int memory_insert_breakpoint PARAMS ((CORE_ADDR, char *)); +unsigned char * +memory_breakpoint_from_pc PARAMS ((CORE_ADDR *pcptr, int *lenptr)); + /* From target.c */ -void +extern void +initialize_targets PARAMS ((void)); + +extern void noprocess PARAMS ((void)); -void +extern void find_default_attach PARAMS ((char *, int)); -void +extern void find_default_create_inferior PARAMS ((char *, char *, char **)); -struct target_ops * +extern struct target_ops * find_core_target PARAMS ((void)); /* Stuff that should be shared among the various remote targets. */ @@ -763,6 +765,8 @@ extern int remote_debug; extern int baud_rate; /* Timeout limit for response from target. */ extern int remote_timeout; + +extern asection *target_memory_bfd_section; /* Functions for helping to write a native target. */ @@ -776,4 +780,14 @@ extern int target_signal_to_host PARAMS ((enum target_signal)); /* Convert from a number used in a GDB command to an enum target_signal. */ extern enum target_signal target_signal_from_command PARAMS ((int)); +/* Any target can call this to switch to remote protocol (in remote.c). */ +extern void push_remote_target PARAMS ((char *name, int from_tty)); + +/* Imported from machine dependent code */ + +#ifdef NO_SINGLE_STEP +extern int one_stepped; +extern void single_step PARAMS ((enum target_signal)); +#endif /* NO_SINGLE_STEP */ + #endif /* !defined (TARGET_H) */ -- 2.30.2