From: Daniel Jacobowitz Date: Sat, 28 May 2005 16:44:29 +0000 (+0000) Subject: * dwarf2-frame.c (dwarf2_frame_prev_register): Use gdb_byte. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6826062e510add65c65379ed490b4eedfa71620;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1aee8eadd23..cd9e18a29e1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,18 @@ +2005-05-28 Daniel Jacobowitz + + * 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 * MAINTAINERS: Change cris-elf state to non-broken. diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 22b8ae6f2f5..a7d27a71bd8 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -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 = diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index f04b091e567..9ea55a1b2ed 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -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 diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 0b7777c0600..622dc4ce4ad 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -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); diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 2c64d5db9f8..e996dc264ae 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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)) diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index fca0b048173..9a7ead8b1c6 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -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 (); diff --git a/gdb/remote.c b/gdb/remote.c index 1c1f4f6e085..bc12efd26c3 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -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 (); diff --git a/gdb/target.c b/gdb/target.c index 0838a3b2f2f..dfe942775c9 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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;