* dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte.

* i386-linux-nat.c (fetch_register, store_register, supply_gregset)
	(fill_gregset): Likewise.
	* i386-tdep.c (i386_frame_prev_register)
	(i386_sigtramp_frame_prev_register): Likewise.
	* linux-nat.c (linux_nat_xfer_memory, linux_nat_make_corefile_notes):
	Likewise.
	* linux-thread-db.c (thread_db_xfer_memory): Likewise.
	* remote.c (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint):
	Likewise.
	* target.c (debug_to_insert_hw_breakpoint)
	(debug_to_remove_hw_breakpoint, update_current_target): Likewise.
This commit is contained in:
Daniel Jacobowitz 2005-05-28 16:44:29 +00:00
parent 3652791261
commit c6826062e5
8 changed files with 37 additions and 21 deletions

View file

@ -1,3 +1,18 @@
2005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
* dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte.
* i386-linux-nat.c (fetch_register, store_register, supply_gregset)
(fill_gregset): Likewise.
* i386-tdep.c (i386_frame_prev_register)
(i386_sigtramp_frame_prev_register): Likewise.
* linux-nat.c (linux_nat_xfer_memory, linux_nat_make_corefile_notes):
Likewise.
* linux-thread-db.c (thread_db_xfer_memory): Likewise.
* remote.c (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint):
Likewise.
* target.c (debug_to_insert_hw_breakpoint)
(debug_to_remove_hw_breakpoint, update_current_target): Likewise.
2005-05-28 Hans-Peter Nilsson <hp@axis.com>
* MAINTAINERS: Change cris-elf state to non-broken.

View file

@ -821,7 +821,7 @@ static void
dwarf2_frame_prev_register (struct frame_info *next_frame, void **this_cache,
int regnum, int *optimizedp,
enum lval_type *lvalp, CORE_ADDR *addrp,
int *realnump, void *valuep)
int *realnump, gdb_byte *valuep)
{
struct gdbarch *gdbarch = get_frame_arch (next_frame);
struct dwarf2_frame_cache *cache =

View file

@ -183,7 +183,7 @@ fetch_register (int regno)
error (_("Couldn't read register %s (#%d): %s."), REGISTER_NAME (regno),
regno, safe_strerror (errno));
regcache_raw_supply (current_regcache, regno, &val);
regcache_raw_supply (current_regcache, regno, (gdb_byte *) &val);
}
/* Store one register. */
@ -204,7 +204,7 @@ store_register (int regno)
tid = PIDGET (inferior_ptid); /* Not a threaded program. */
errno = 0;
regcache_raw_collect (current_regcache, regno, &val);
regcache_raw_collect (current_regcache, regno, (gdb_byte *) &val);
ptrace (PTRACE_POKEUSER, tid, register_addr (regno, 0), val);
if (errno != 0)
error (_("Couldn't write register %s (#%d): %s."), REGISTER_NAME (regno),
@ -225,11 +225,11 @@ supply_gregset (elf_gregset_t *gregsetp)
int i;
for (i = 0; i < I386_NUM_GREGS; i++)
regcache_raw_supply (current_regcache, i, regp + regmap[i]);
regcache_raw_supply (current_regcache, i, (gdb_byte *) (regp + regmap[i]));
if (I386_LINUX_ORIG_EAX_REGNUM < NUM_REGS)
regcache_raw_supply (current_regcache, I386_LINUX_ORIG_EAX_REGNUM,
regp + ORIG_EAX);
(gdb_byte *) (regp + ORIG_EAX));
}
/* Fill register REGNO (if it is a general-purpose register) in
@ -244,12 +244,12 @@ fill_gregset (elf_gregset_t *gregsetp, int regno)
for (i = 0; i < I386_NUM_GREGS; i++)
if (regno == -1 || regno == i)
regcache_raw_collect (current_regcache, i, regp + regmap[i]);
regcache_raw_collect (current_regcache, i, (gdb_byte *) (regp + regmap[i]));
if ((regno == -1 || regno == I386_LINUX_ORIG_EAX_REGNUM)
&& I386_LINUX_ORIG_EAX_REGNUM < NUM_REGS)
regcache_raw_collect (current_regcache, I386_LINUX_ORIG_EAX_REGNUM,
regp + ORIG_EAX);
(gdb_byte *) (regp + ORIG_EAX));
}
#ifdef HAVE_PTRACE_GETREGS

View file

@ -937,7 +937,7 @@ static void
i386_frame_prev_register (struct frame_info *next_frame, void **this_cache,
int regnum, int *optimizedp,
enum lval_type *lvalp, CORE_ADDR *addrp,
int *realnump, void *valuep)
int *realnump, gdb_byte *valuep)
{
struct i386_frame_cache *cache = i386_frame_cache (next_frame, this_cache);
@ -1099,7 +1099,7 @@ i386_sigtramp_frame_prev_register (struct frame_info *next_frame,
void **this_cache,
int regnum, int *optimizedp,
enum lval_type *lvalp, CORE_ADDR *addrp,
int *realnump, void *valuep)
int *realnump, gdb_byte *valuep)
{
/* Make sure we've initialized the cache. */
i386_sigtramp_frame_cache (next_frame, this_cache);

View file

@ -2326,8 +2326,9 @@ linux_nat_mourn_inferior (void)
}
static int
linux_nat_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
struct mem_attrib *attrib, struct target_ops *target)
linux_nat_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len,
int write, struct mem_attrib *attrib,
struct target_ops *target)
{
struct cleanup *old_chain = save_inferior_ptid ();
int xfer;
@ -2621,7 +2622,7 @@ linux_nat_make_corefile_notes (bfd *obfd, int *note_size)
char psargs[80] = { '\0' };
char *note_data = NULL;
ptid_t current_ptid = inferior_ptid;
char *auxv;
gdb_byte *auxv;
int auxv_len;
if (get_exec_file (0))

View file

@ -962,7 +962,7 @@ thread_db_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
}
static int
thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
thread_db_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write,
struct mem_attrib *attrib, struct target_ops *target)
{
struct cleanup *old_chain = save_inferior_ptid ();

View file

@ -4728,7 +4728,7 @@ remote_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p)
static int
remote_insert_hw_breakpoint (CORE_ADDR addr, char *shadow)
remote_insert_hw_breakpoint (CORE_ADDR addr, gdb_byte *shadow)
{
int len = 0;
struct remote_state *rs = get_remote_state ();
@ -4770,7 +4770,7 @@ remote_insert_hw_breakpoint (CORE_ADDR addr, char *shadow)
static int
remote_remove_hw_breakpoint (CORE_ADDR addr, char *shadow)
remote_remove_hw_breakpoint (CORE_ADDR addr, gdb_byte *shadow)
{
int len;
struct remote_state *rs = get_remote_state ();

View file

@ -116,9 +116,9 @@ static int debug_to_remove_breakpoint (CORE_ADDR, gdb_byte *);
static int debug_to_can_use_hw_breakpoint (int, int, int);
static int debug_to_insert_hw_breakpoint (CORE_ADDR, char *);
static int debug_to_insert_hw_breakpoint (CORE_ADDR, gdb_byte *);
static int debug_to_remove_hw_breakpoint (CORE_ADDR, char *);
static int debug_to_remove_hw_breakpoint (CORE_ADDR, gdb_byte *);
static int debug_to_insert_watchpoint (CORE_ADDR, int, int);
@ -514,10 +514,10 @@ update_current_target (void)
(int (*) (int, int, int))
return_zero);
de_fault (to_insert_hw_breakpoint,
(int (*) (CORE_ADDR, char *))
(int (*) (CORE_ADDR, gdb_byte *))
return_minus_one);
de_fault (to_remove_hw_breakpoint,
(int (*) (CORE_ADDR, char *))
(int (*) (CORE_ADDR, gdb_byte *))
return_minus_one);
de_fault (to_insert_watchpoint,
(int (*) (CORE_ADDR, int, int))
@ -2136,7 +2136,7 @@ debug_to_stopped_data_address (struct target_ops *target, CORE_ADDR *addr)
}
static int
debug_to_insert_hw_breakpoint (CORE_ADDR addr, char *save)
debug_to_insert_hw_breakpoint (CORE_ADDR addr, gdb_byte *save)
{
int retval;
@ -2150,7 +2150,7 @@ debug_to_insert_hw_breakpoint (CORE_ADDR addr, char *save)
}
static int
debug_to_remove_hw_breakpoint (CORE_ADDR addr, char *save)
debug_to_remove_hw_breakpoint (CORE_ADDR addr, gdb_byte *save)
{
int retval;