diff options
author | Daniel Jacobowitz <dan@debian.org> | 2005-05-28 16:44:29 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2005-05-28 16:44:29 +0000 |
commit | 003e662e35da91ec86a9f9c0a4afdc51d3732357 (patch) | |
tree | 952f2361a30d5d831f40668061296bb1f801f8dd /gdb/i386-linux-nat.c | |
parent | febfe0a72c6798c7df5f309e2299083703b707b5 (diff) | |
download | gdb-003e662e35da91ec86a9f9c0a4afdc51d3732357.tar.gz |
* 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.
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r-- | gdb/i386-linux-nat.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 |