/* Simulate breakpoints by patching locations in the target system, for GDB.
- Copyright 1990, 1991, 1992, 1993, 1995, 1997, 1998, 1999, 2000,
+ Copyright (C) 1990, 1991, 1992, 1993, 1995, 1997, 1998, 1999, 2000,
2002 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by John Gilmore.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
#include "defs.h"
is accomplished via BREAKPOINT_MAX). */
int
-default_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
+default_memory_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{
int val;
const unsigned char *bp;
/* Write the breakpoint. */
if (val == 0)
- val = target_write_memory (addr, (char *) bp, bplen);
+ val = target_write_memory (addr, bp, bplen);
return val;
}
int
-default_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
+default_memory_remove_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{
- const unsigned char *bp;
+ const bfd_byte *bp;
int bplen;
/* Determine appropriate breakpoint contents and size for this address. */
int
-memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
+memory_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{
return MEMORY_INSERT_BREAKPOINT(addr, contents_cache);
}
int
-memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
+memory_remove_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{
return MEMORY_REMOVE_BREAKPOINT(addr, contents_cache);
}