2005-05-01 Andrew Cagney <cagney@gnu.org>

* gdbarch.sh (deprecated_extract_return_value)
	(breakpoint_from_pc, deprecated_store_return_value)
	(memory_insert_breakpoint, memory_remove_breakpoint): Change type
	of buffer to a bfd_byte pointer.
	* gdbarch.h, gdbarch.c: Re-generate.
	* mem-break.c (memory_insert_breakpoint)
	(memory_remove_breakpoint, default_memory_insert_breakpoint)
	(default_memory_remove_breakpoint): Update.
	* target.h (memory_insert_breakpoint)
	(memory_remove_breakpoint, default_memory_insert_breakpoint)
	(default_memory_remove_breakpoint): Update declarations.
	(struct target_ops): Update to_insert_breakpoint and
	to_remove_breakpoint.
	* target.c (debug_to_remove_breakpoint)
	(debug_to_insert_breakpoint): Update.
	* remote-m32r-sdi.c (m32r_remove_breakpoint)
	(m32r_insert_breakpoint): Update.
	* m32r-tdep.c (m32r_memory_insert_breakpoint)
	(m32r_memory_remove_breakpoint): Update.
	* remote-e7000.c (e7000_insert_breakpoint)
	(e7000_remove_breakpoint): Update.
	* remote-rdi.c (arm_rdi_insert_breakpoint)
	(arm_rdi_remove_breakpoint): Update.
	* remote-sim.c (gdbsim_insert_breakpoint)
	(gdbsim_remove_breakpoint): Update.
	* exec.c (ignore): Update.
	* rs6000-tdep.c (rs6000_extract_return_value): Update.
	* ia64-tdep.c (ia64_memory_insert_breakpoint)
	(ia64_memory_remove_breakpoint): Update.
	* remote-rdp.c (remote_rdp_insert_breakpoint)
	(remote_rdp_remove_breakpoint): Update.
This commit is contained in:
Andrew Cagney 2005-05-01 19:58:55 +00:00
parent e908eab4d8
commit 5a168c78ef
18 changed files with 95 additions and 60 deletions

View file

@ -1,3 +1,37 @@
2005-05-01 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (deprecated_extract_return_value)
(breakpoint_from_pc, deprecated_store_return_value)
(memory_insert_breakpoint, memory_remove_breakpoint): Change type
of buffer to a bfd_byte pointer.
* gdbarch.h, gdbarch.c: Re-generate.
* mem-break.c (memory_insert_breakpoint)
(memory_remove_breakpoint, default_memory_insert_breakpoint)
(default_memory_remove_breakpoint): Update.
* target.h (memory_insert_breakpoint)
(memory_remove_breakpoint, default_memory_insert_breakpoint)
(default_memory_remove_breakpoint): Update declarations.
(struct target_ops): Update to_insert_breakpoint and
to_remove_breakpoint.
* target.c (debug_to_remove_breakpoint)
(debug_to_insert_breakpoint): Update.
* remote-m32r-sdi.c (m32r_remove_breakpoint)
(m32r_insert_breakpoint): Update.
* m32r-tdep.c (m32r_memory_insert_breakpoint)
(m32r_memory_remove_breakpoint): Update.
* remote-e7000.c (e7000_insert_breakpoint)
(e7000_remove_breakpoint): Update.
* remote-rdi.c (arm_rdi_insert_breakpoint)
(arm_rdi_remove_breakpoint): Update.
* remote-sim.c (gdbsim_insert_breakpoint)
(gdbsim_remove_breakpoint): Update.
* exec.c (ignore): Update.
* rs6000-tdep.c (rs6000_extract_return_value): Update.
* ia64-tdep.c (ia64_memory_insert_breakpoint)
(ia64_memory_remove_breakpoint): Update.
* remote-rdp.c (remote_rdp_insert_breakpoint)
(remote_rdp_remove_breakpoint): Update.
2005-05-01 Mark Kettenis <kettenis@gnu.org> 2005-05-01 Mark Kettenis <kettenis@gnu.org>
* somsolib.c, somsolib.h: Remove files. * somsolib.c, somsolib.h: Remove files.

View file

@ -93,7 +93,7 @@ static void get_core_registers (int);
static void add_to_thread_list (bfd *, asection *, void *); static void add_to_thread_list (bfd *, asection *, void *);
static int ignore (CORE_ADDR, char *); static int ignore (CORE_ADDR, bfd_byte *);
static int core_file_thread_alive (ptid_t tid); static int core_file_thread_alive (ptid_t tid);
@ -625,7 +625,7 @@ core_xfer_partial (struct target_ops *ops, enum target_object object,
`gdb internal error' (since generic_mourn calls breakpoint_init_inferior). */ `gdb internal error' (since generic_mourn calls breakpoint_init_inferior). */
static int static int
ignore (CORE_ADDR addr, char *contents) ignore (CORE_ADDR addr, bfd_byte *contents)
{ {
return 0; return 0;
} }

View file

@ -62,7 +62,7 @@ static void set_section_command (char *, int);
static void exec_files_info (struct target_ops *); static void exec_files_info (struct target_ops *);
static int ignore (CORE_ADDR, char *); static int ignore (CORE_ADDR, bfd_byte *);
static void init_exec_ops (void); static void init_exec_ops (void);
@ -676,7 +676,7 @@ set_section_command (char *args, int from_tty)
breakpoint_init_inferior). */ breakpoint_init_inferior). */
static int static int
ignore (CORE_ADDR addr, char *contents) ignore (CORE_ADDR addr, bfd_byte *contents)
{ {
return 0; return 0;
} }

View file

@ -2829,7 +2829,7 @@ set_gdbarch_store_return_value (struct gdbarch *gdbarch,
} }
void void
gdbarch_deprecated_extract_return_value (struct gdbarch *gdbarch, struct type *type, char *regbuf, char *valbuf) gdbarch_deprecated_extract_return_value (struct gdbarch *gdbarch, struct type *type, bfd_byte *regbuf, bfd_byte *valbuf)
{ {
gdb_assert (gdbarch != NULL); gdb_assert (gdbarch != NULL);
gdb_assert (gdbarch->deprecated_extract_return_value != NULL); gdb_assert (gdbarch->deprecated_extract_return_value != NULL);
@ -2846,7 +2846,7 @@ set_gdbarch_deprecated_extract_return_value (struct gdbarch *gdbarch,
} }
void void
gdbarch_deprecated_store_return_value (struct gdbarch *gdbarch, struct type *type, char *valbuf) gdbarch_deprecated_store_return_value (struct gdbarch *gdbarch, struct type *type, bfd_byte *valbuf)
{ {
gdb_assert (gdbarch != NULL); gdb_assert (gdbarch != NULL);
gdb_assert (gdbarch->deprecated_store_return_value != NULL); gdb_assert (gdbarch->deprecated_store_return_value != NULL);
@ -2937,7 +2937,7 @@ set_gdbarch_inner_than (struct gdbarch *gdbarch,
gdbarch->inner_than = inner_than; gdbarch->inner_than = inner_than;
} }
const unsigned char * const bfd_byte *
gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr) gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr)
{ {
gdb_assert (gdbarch != NULL); gdb_assert (gdbarch != NULL);
@ -2979,7 +2979,7 @@ set_gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch,
} }
int int
gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, char *contents_cache) gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, bfd_byte *contents_cache)
{ {
gdb_assert (gdbarch != NULL); gdb_assert (gdbarch != NULL);
gdb_assert (gdbarch->memory_insert_breakpoint != NULL); gdb_assert (gdbarch->memory_insert_breakpoint != NULL);
@ -2996,7 +2996,7 @@ set_gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch,
} }
int int
gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, char *contents_cache) gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, bfd_byte *contents_cache)
{ {
gdb_assert (gdbarch != NULL); gdb_assert (gdbarch != NULL);
gdb_assert (gdbarch->memory_remove_breakpoint != NULL); gdb_assert (gdbarch->memory_remove_breakpoint != NULL);

View file

@ -818,8 +818,8 @@ extern void set_gdbarch_store_return_value (struct gdbarch *gdbarch, gdbarch_sto
#define STORE_RETURN_VALUE(type, regcache, valbuf) (gdbarch_store_return_value (current_gdbarch, type, regcache, valbuf)) #define STORE_RETURN_VALUE(type, regcache, valbuf) (gdbarch_store_return_value (current_gdbarch, type, regcache, valbuf))
#endif #endif
typedef void (gdbarch_deprecated_extract_return_value_ftype) (struct type *type, char *regbuf, char *valbuf); typedef void (gdbarch_deprecated_extract_return_value_ftype) (struct type *type, bfd_byte *regbuf, bfd_byte *valbuf);
extern void gdbarch_deprecated_extract_return_value (struct gdbarch *gdbarch, struct type *type, char *regbuf, char *valbuf); extern void gdbarch_deprecated_extract_return_value (struct gdbarch *gdbarch, struct type *type, bfd_byte *regbuf, bfd_byte *valbuf);
extern void set_gdbarch_deprecated_extract_return_value (struct gdbarch *gdbarch, gdbarch_deprecated_extract_return_value_ftype *deprecated_extract_return_value); extern void set_gdbarch_deprecated_extract_return_value (struct gdbarch *gdbarch, gdbarch_deprecated_extract_return_value_ftype *deprecated_extract_return_value);
#if !defined (GDB_TM_FILE) && defined (DEPRECATED_EXTRACT_RETURN_VALUE) #if !defined (GDB_TM_FILE) && defined (DEPRECATED_EXTRACT_RETURN_VALUE)
#error "Non multi-arch definition of DEPRECATED_EXTRACT_RETURN_VALUE" #error "Non multi-arch definition of DEPRECATED_EXTRACT_RETURN_VALUE"
@ -828,8 +828,8 @@ extern void set_gdbarch_deprecated_extract_return_value (struct gdbarch *gdbarch
#define DEPRECATED_EXTRACT_RETURN_VALUE(type, regbuf, valbuf) (gdbarch_deprecated_extract_return_value (current_gdbarch, type, regbuf, valbuf)) #define DEPRECATED_EXTRACT_RETURN_VALUE(type, regbuf, valbuf) (gdbarch_deprecated_extract_return_value (current_gdbarch, type, regbuf, valbuf))
#endif #endif
typedef void (gdbarch_deprecated_store_return_value_ftype) (struct type *type, char *valbuf); typedef void (gdbarch_deprecated_store_return_value_ftype) (struct type *type, bfd_byte *valbuf);
extern void gdbarch_deprecated_store_return_value (struct gdbarch *gdbarch, struct type *type, char *valbuf); extern void gdbarch_deprecated_store_return_value (struct gdbarch *gdbarch, struct type *type, bfd_byte *valbuf);
extern void set_gdbarch_deprecated_store_return_value (struct gdbarch *gdbarch, gdbarch_deprecated_store_return_value_ftype *deprecated_store_return_value); extern void set_gdbarch_deprecated_store_return_value (struct gdbarch *gdbarch, gdbarch_deprecated_store_return_value_ftype *deprecated_store_return_value);
#if !defined (GDB_TM_FILE) && defined (DEPRECATED_STORE_RETURN_VALUE) #if !defined (GDB_TM_FILE) && defined (DEPRECATED_STORE_RETURN_VALUE)
#error "Non multi-arch definition of DEPRECATED_STORE_RETURN_VALUE" #error "Non multi-arch definition of DEPRECATED_STORE_RETURN_VALUE"
@ -911,8 +911,8 @@ extern void set_gdbarch_inner_than (struct gdbarch *gdbarch, gdbarch_inner_than_
#define INNER_THAN(lhs, rhs) (gdbarch_inner_than (current_gdbarch, lhs, rhs)) #define INNER_THAN(lhs, rhs) (gdbarch_inner_than (current_gdbarch, lhs, rhs))
#endif #endif
typedef const unsigned char * (gdbarch_breakpoint_from_pc_ftype) (CORE_ADDR *pcptr, int *lenptr); typedef const bfd_byte * (gdbarch_breakpoint_from_pc_ftype) (CORE_ADDR *pcptr, int *lenptr);
extern const unsigned char * gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr); extern const bfd_byte * gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, CORE_ADDR *pcptr, int *lenptr);
extern void set_gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, gdbarch_breakpoint_from_pc_ftype *breakpoint_from_pc); extern void set_gdbarch_breakpoint_from_pc (struct gdbarch *gdbarch, gdbarch_breakpoint_from_pc_ftype *breakpoint_from_pc);
#if !defined (GDB_TM_FILE) && defined (BREAKPOINT_FROM_PC) #if !defined (GDB_TM_FILE) && defined (BREAKPOINT_FROM_PC)
#error "Non multi-arch definition of BREAKPOINT_FROM_PC" #error "Non multi-arch definition of BREAKPOINT_FROM_PC"
@ -927,8 +927,8 @@ typedef CORE_ADDR (gdbarch_adjust_breakpoint_address_ftype) (struct gdbarch *gdb
extern CORE_ADDR gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr); extern CORE_ADDR gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, CORE_ADDR bpaddr);
extern void set_gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address); extern void set_gdbarch_adjust_breakpoint_address (struct gdbarch *gdbarch, gdbarch_adjust_breakpoint_address_ftype *adjust_breakpoint_address);
typedef int (gdbarch_memory_insert_breakpoint_ftype) (CORE_ADDR addr, char *contents_cache); typedef int (gdbarch_memory_insert_breakpoint_ftype) (CORE_ADDR addr, bfd_byte *contents_cache);
extern int gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, char *contents_cache); extern int gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, bfd_byte *contents_cache);
extern void set_gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, gdbarch_memory_insert_breakpoint_ftype *memory_insert_breakpoint); extern void set_gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, gdbarch_memory_insert_breakpoint_ftype *memory_insert_breakpoint);
#if !defined (GDB_TM_FILE) && defined (MEMORY_INSERT_BREAKPOINT) #if !defined (GDB_TM_FILE) && defined (MEMORY_INSERT_BREAKPOINT)
#error "Non multi-arch definition of MEMORY_INSERT_BREAKPOINT" #error "Non multi-arch definition of MEMORY_INSERT_BREAKPOINT"
@ -937,8 +937,8 @@ extern void set_gdbarch_memory_insert_breakpoint (struct gdbarch *gdbarch, gdbar
#define MEMORY_INSERT_BREAKPOINT(addr, contents_cache) (gdbarch_memory_insert_breakpoint (current_gdbarch, addr, contents_cache)) #define MEMORY_INSERT_BREAKPOINT(addr, contents_cache) (gdbarch_memory_insert_breakpoint (current_gdbarch, addr, contents_cache))
#endif #endif
typedef int (gdbarch_memory_remove_breakpoint_ftype) (CORE_ADDR addr, char *contents_cache); typedef int (gdbarch_memory_remove_breakpoint_ftype) (CORE_ADDR addr, bfd_byte *contents_cache);
extern int gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, char *contents_cache); extern int gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, CORE_ADDR addr, bfd_byte *contents_cache);
extern void set_gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, gdbarch_memory_remove_breakpoint_ftype *memory_remove_breakpoint); extern void set_gdbarch_memory_remove_breakpoint (struct gdbarch *gdbarch, gdbarch_memory_remove_breakpoint_ftype *memory_remove_breakpoint);
#if !defined (GDB_TM_FILE) && defined (MEMORY_REMOVE_BREAKPOINT) #if !defined (GDB_TM_FILE) && defined (MEMORY_REMOVE_BREAKPOINT)
#error "Non multi-arch definition of MEMORY_REMOVE_BREAKPOINT" #error "Non multi-arch definition of MEMORY_REMOVE_BREAKPOINT"

View file

@ -521,8 +521,8 @@ M::enum return_value_convention:return_value:struct type *valtype, struct regcac
f:=:void:extract_return_value:struct type *type, struct regcache *regcache, void *valbuf:type, regcache, valbuf::legacy_extract_return_value::0 f:=:void:extract_return_value:struct type *type, struct regcache *regcache, void *valbuf:type, regcache, valbuf::legacy_extract_return_value::0
f:=:void:store_return_value:struct type *type, struct regcache *regcache, const void *valbuf:type, regcache, valbuf::legacy_store_return_value::0 f:=:void:store_return_value:struct type *type, struct regcache *regcache, const void *valbuf:type, regcache, valbuf::legacy_store_return_value::0
f:=:void:deprecated_extract_return_value:struct type *type, char *regbuf, char *valbuf:type, regbuf, valbuf f:=:void:deprecated_extract_return_value:struct type *type, bfd_byte *regbuf, bfd_byte *valbuf:type, regbuf, valbuf
f:=:void:deprecated_store_return_value:struct type *type, char *valbuf:type, valbuf f:=:void:deprecated_store_return_value:struct type *type, bfd_byte *valbuf:type, valbuf
f:=:int:deprecated_use_struct_convention:int gcc_p, struct type *value_type:gcc_p, value_type::generic_use_struct_convention::0 f:=:int:deprecated_use_struct_convention:int gcc_p, struct type *value_type:gcc_p, value_type::generic_use_struct_convention::0
# As of 2004-01-17 only the 32-bit SPARC ABI has been identified as an # As of 2004-01-17 only the 32-bit SPARC ABI has been identified as an
@ -549,10 +549,10 @@ F:=:CORE_ADDR:deprecated_extract_struct_value_address:struct regcache *regcache:
# #
f:=:CORE_ADDR:skip_prologue:CORE_ADDR ip:ip:0:0 f:=:CORE_ADDR:skip_prologue:CORE_ADDR ip:ip:0:0
f:=:int:inner_than:CORE_ADDR lhs, CORE_ADDR rhs:lhs, rhs:0:0 f:=:int:inner_than:CORE_ADDR lhs, CORE_ADDR rhs:lhs, rhs:0:0
f:=:const unsigned char *:breakpoint_from_pc:CORE_ADDR *pcptr, int *lenptr:pcptr, lenptr::0: f:=:const bfd_byte *:breakpoint_from_pc:CORE_ADDR *pcptr, int *lenptr:pcptr, lenptr::0:
M::CORE_ADDR:adjust_breakpoint_address:CORE_ADDR bpaddr:bpaddr M::CORE_ADDR:adjust_breakpoint_address:CORE_ADDR bpaddr:bpaddr
f:=:int:memory_insert_breakpoint:CORE_ADDR addr, char *contents_cache:addr, contents_cache:0:default_memory_insert_breakpoint::0 f:=:int:memory_insert_breakpoint:CORE_ADDR addr, bfd_byte *contents_cache:addr, contents_cache:0:default_memory_insert_breakpoint::0
f:=:int:memory_remove_breakpoint:CORE_ADDR addr, char *contents_cache:addr, contents_cache:0:default_memory_remove_breakpoint::0 f:=:int:memory_remove_breakpoint:CORE_ADDR addr, bfd_byte *contents_cache:addr, contents_cache:0:default_memory_remove_breakpoint::0
v:=:CORE_ADDR:decr_pc_after_break:::0:::0 v:=:CORE_ADDR:decr_pc_after_break:::0:::0
# A function can be addressed by either it's "pointer" (possibly a # A function can be addressed by either it's "pointer" (possibly a

View file

@ -523,7 +523,7 @@ fetch_instruction (CORE_ADDR addr, instruction_type *it, long long *instr)
#define IA64_BREAKPOINT 0x00003333300LL #define IA64_BREAKPOINT 0x00003333300LL
static int static int
ia64_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache) ia64_memory_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
char bundle[BUNDLE_LEN]; char bundle[BUNDLE_LEN];
int slotnum = (int) (addr & 0x0f) / SLOT_MULTIPLIER; int slotnum = (int) (addr & 0x0f) / SLOT_MULTIPLIER;
@ -556,7 +556,7 @@ ia64_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
} }
static int static int
ia64_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache) ia64_memory_remove_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
char bundle[BUNDLE_LEN]; char bundle[BUNDLE_LEN];
int slotnum = (addr & 0x0f) / SLOT_MULTIPLIER; int slotnum = (addr & 0x0f) / SLOT_MULTIPLIER;

View file

@ -81,7 +81,7 @@ m32r_frame_align (struct gdbarch *gdbarch, CORE_ADDR sp)
The following functions take care of this behavior. */ The following functions take care of this behavior. */
static int static int
m32r_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache) m32r_memory_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
int val; int val;
char buf[4]; char buf[4];
@ -134,7 +134,7 @@ m32r_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
} }
static int static int
m32r_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache) m32r_memory_remove_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
int val; int val;
char buf[4]; char buf[4];

View file

@ -42,7 +42,7 @@
is accomplished via BREAKPOINT_MAX). */ is accomplished via BREAKPOINT_MAX). */
int int
default_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache) default_memory_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
int val; int val;
const unsigned char *bp; const unsigned char *bp;
@ -65,9 +65,9 @@ default_memory_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
int 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; int bplen;
/* Determine appropriate breakpoint contents and size for this address. */ /* Determine appropriate breakpoint contents and size for this address. */
@ -80,13 +80,13 @@ default_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
int 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); return MEMORY_INSERT_BREAKPOINT(addr, contents_cache);
} }
int 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); return MEMORY_REMOVE_BREAKPOINT(addr, contents_cache);
} }

View file

@ -1702,7 +1702,7 @@ static CORE_ADDR breakaddr[MAX_BREAKPOINTS] =
{0}; {0};
static int static int
e7000_insert_breakpoint (CORE_ADDR addr, char *shadow) e7000_insert_breakpoint (CORE_ADDR addr, bfd_byte *shadow)
{ {
int i; int i;
char buf[200]; char buf[200];
@ -1745,7 +1745,7 @@ e7000_insert_breakpoint (CORE_ADDR addr, char *shadow)
} }
static int static int
e7000_remove_breakpoint (CORE_ADDR addr, char *shadow) e7000_remove_breakpoint (CORE_ADDR addr, bfd_byte *shadow)
{ {
int i; int i;
char buf[200]; char buf[200];

View file

@ -1141,7 +1141,7 @@ m32r_mourn_inferior (void)
} }
static int static int
m32r_insert_breakpoint (CORE_ADDR addr, char *shadow) m32r_insert_breakpoint (CORE_ADDR addr, bfd_byte *shadow)
{ {
int ib_breakpoints; int ib_breakpoints;
unsigned char buf[13]; unsigned char buf[13];
@ -1183,7 +1183,7 @@ m32r_insert_breakpoint (CORE_ADDR addr, char *shadow)
} }
static int static int
m32r_remove_breakpoint (CORE_ADDR addr, char *shadow) m32r_remove_breakpoint (CORE_ADDR addr, bfd_byte *shadow)
{ {
int i; int i;

View file

@ -74,9 +74,9 @@ static void arm_rdi_kill (void);
static void arm_rdi_detach (char *args, int from_tty); static void arm_rdi_detach (char *args, int from_tty);
static int arm_rdi_insert_breakpoint (CORE_ADDR, char *); static int arm_rdi_insert_breakpoint (CORE_ADDR, bfd_byte *);
static int arm_rdi_remove_breakpoint (CORE_ADDR, char *); static int arm_rdi_remove_breakpoint (CORE_ADDR, bfd_byte *);
static char *rdi_error_message (int err); static char *rdi_error_message (int err);
@ -668,7 +668,7 @@ arm_rdi_mourn_inferior (void)
here. */ here. */
static int static int
arm_rdi_insert_breakpoint (CORE_ADDR addr, char *contents_cache) arm_rdi_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
int rslt; int rslt;
PointHandle point; PointHandle point;
@ -692,7 +692,7 @@ arm_rdi_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
} }
static int static int
arm_rdi_remove_breakpoint (CORE_ADDR addr, char *contents_cache) arm_rdi_remove_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
int rslt; int rslt;
PointHandle point; PointHandle point;

View file

@ -1053,7 +1053,7 @@ rdp_execute (void)
} }
static int static int
remote_rdp_insert_breakpoint (CORE_ADDR addr, char *save) remote_rdp_insert_breakpoint (CORE_ADDR addr, bfd_byte *save)
{ {
int res; int res;
if (ds.rdi_level > 0) if (ds.rdi_level > 0)
@ -1077,7 +1077,7 @@ remote_rdp_insert_breakpoint (CORE_ADDR addr, char *save)
} }
static int static int
remote_rdp_remove_breakpoint (CORE_ADDR addr, char *save) remote_rdp_remove_breakpoint (CORE_ADDR addr, bfd_byte *save)
{ {
int res; int res;
if (ds.rdi_level > 0) if (ds.rdi_level > 0)

View file

@ -805,13 +805,13 @@ gdbsim_mourn_inferior (void)
} }
static int static int
gdbsim_insert_breakpoint (CORE_ADDR addr, char *contents_cache) gdbsim_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
return memory_insert_breakpoint (addr, contents_cache); return memory_insert_breakpoint (addr, contents_cache);
} }
static int static int
gdbsim_remove_breakpoint (CORE_ADDR addr, char *contents_cache) gdbsim_remove_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
return memory_remove_breakpoint (addr, contents_cache); return memory_remove_breakpoint (addr, contents_cache);
} }

View file

@ -136,9 +136,9 @@ static void get_offsets (void);
static long read_frame (char *buf, long sizeof_buf); static long read_frame (char *buf, long sizeof_buf);
static int remote_insert_breakpoint (CORE_ADDR, char *); static int remote_insert_breakpoint (CORE_ADDR, bfd_byte *);
static int remote_remove_breakpoint (CORE_ADDR, char *); static int remote_remove_breakpoint (CORE_ADDR, bfd_byte *);
static int hexnumlen (ULONGEST num); static int hexnumlen (ULONGEST num);
@ -4497,7 +4497,7 @@ static unsigned char little_break_insn[] = DEPRECATED_LITTLE_REMOTE_BREAKPOINT;
of bytes returned by BREAKPOINT_FROM_PC. */ of bytes returned by BREAKPOINT_FROM_PC. */
static int static int
remote_insert_breakpoint (CORE_ADDR addr, char *contents_cache) remote_insert_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
struct remote_state *rs = get_remote_state (); struct remote_state *rs = get_remote_state ();
#ifdef DEPRECATED_REMOTE_BREAKPOINT #ifdef DEPRECATED_REMOTE_BREAKPOINT
@ -4557,7 +4557,7 @@ remote_insert_breakpoint (CORE_ADDR addr, char *contents_cache)
} }
static int static int
remote_remove_breakpoint (CORE_ADDR addr, char *contents_cache) remote_remove_breakpoint (CORE_ADDR addr, bfd_byte *contents_cache)
{ {
struct remote_state *rs = get_remote_state (); struct remote_state *rs = get_remote_state ();
int bp_size; int bp_size;

View file

@ -1665,7 +1665,8 @@ rs6000_use_struct_convention (int gcc_p, struct type *value_type)
} }
static void static void
rs6000_extract_return_value (struct type *valtype, char *regbuf, char *valbuf) rs6000_extract_return_value (struct type *valtype, bfd_byte *regbuf,
bfd_byte *valbuf)
{ {
int offset = 0; int offset = 0;
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);

View file

@ -114,9 +114,9 @@ static int deprecated_debug_xfer_memory (CORE_ADDR, char *, int, int,
static void debug_to_files_info (struct target_ops *); static void debug_to_files_info (struct target_ops *);
static int debug_to_insert_breakpoint (CORE_ADDR, char *); static int debug_to_insert_breakpoint (CORE_ADDR, bfd_byte *);
static int debug_to_remove_breakpoint (CORE_ADDR, char *); static int debug_to_remove_breakpoint (CORE_ADDR, bfd_byte *);
static int debug_to_can_use_hw_breakpoint (int, int, int); static int debug_to_can_use_hw_breakpoint (int, int, int);
@ -2068,7 +2068,7 @@ debug_to_files_info (struct target_ops *target)
} }
static int static int
debug_to_insert_breakpoint (CORE_ADDR addr, char *save) debug_to_insert_breakpoint (CORE_ADDR addr, bfd_byte *save)
{ {
int retval; int retval;
@ -2082,7 +2082,7 @@ debug_to_insert_breakpoint (CORE_ADDR addr, char *save)
} }
static int static int
debug_to_remove_breakpoint (CORE_ADDR addr, char *save) debug_to_remove_breakpoint (CORE_ADDR addr, bfd_byte *save)
{ {
int retval; int retval;

View file

@ -335,8 +335,8 @@ struct target_ops
struct target_ops *target); struct target_ops *target);
void (*to_files_info) (struct target_ops *); void (*to_files_info) (struct target_ops *);
int (*to_insert_breakpoint) (CORE_ADDR, char *); int (*to_insert_breakpoint) (CORE_ADDR, bfd_byte *);
int (*to_remove_breakpoint) (CORE_ADDR, char *); int (*to_remove_breakpoint) (CORE_ADDR, bfd_byte *);
int (*to_can_use_hw_breakpoint) (int, int, int); int (*to_can_use_hw_breakpoint) (int, int, int);
int (*to_insert_hw_breakpoint) (CORE_ADDR, char *); int (*to_insert_hw_breakpoint) (CORE_ADDR, char *);
int (*to_remove_hw_breakpoint) (CORE_ADDR, char *); int (*to_remove_hw_breakpoint) (CORE_ADDR, char *);
@ -1137,13 +1137,13 @@ struct section_table *target_section_by_addr (struct target_ops *target,
/* From mem-break.c */ /* From mem-break.c */
extern int memory_remove_breakpoint (CORE_ADDR, char *); extern int memory_remove_breakpoint (CORE_ADDR, bfd_byte *);
extern int memory_insert_breakpoint (CORE_ADDR, char *); extern int memory_insert_breakpoint (CORE_ADDR, bfd_byte *);
extern int default_memory_remove_breakpoint (CORE_ADDR, char *); extern int default_memory_remove_breakpoint (CORE_ADDR, bfd_byte *);
extern int default_memory_insert_breakpoint (CORE_ADDR, char *); extern int default_memory_insert_breakpoint (CORE_ADDR, bfd_byte *);
/* From target.c */ /* From target.c */