aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-05-25 03:12:13 +0000
committerAndrew Cagney <cagney@redhat.com>2005-05-25 03:12:13 +0000
commit50fd1280820c4c5a3403a68d53a76dc225dd8702 (patch)
treee435b07363db9d59379533df0585c542ec467681 /gdb/ppc-linux-tdep.c
parent39c833404fb59970abea275811722217a042c508 (diff)
downloadgdb-50fd1280820c4c5a3403a68d53a76dc225dd8702.zip
gdb-50fd1280820c4c5a3403a68d53a76dc225dd8702.tar.gz
gdb-50fd1280820c4c5a3403a68d53a76dc225dd8702.tar.bz2
2005-05-24 Andrew Cagney <cagney@gnu.org>
* rs6000-tdep.c (ppc_supply_reg, ppc_collect_reg): Use gdb_byte for byte buffers. (rs6000_fetch_pointer_argument): Use get_frame_register_unsigned. (rs6000_software_single_step, sstep_breaks, skip_prologue) (rs6000_push_dummy_call, rs6000_push_dummy_call) (rs6000_push_dummy_call, rs6000_push_dummy_call) (rs6000_register_to_value, e500_pseudo_register_read) (rs6000_store_return_value, e500_pseudo_register_write) (rs6000_frame_prev_register, rs6000_extract_return_value): Ditto. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call) (ppc_sysv_abi_push_dummy_call, do_ppc_sysv_return_value) (do_ppc_sysv_return_value, ppc_sysv_abi_return_value) (ppc_sysv_abi_broken_return_value) (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_push_dummy_call) (ppc64_sysv_abi_push_dummy_call, ppc64_sysv_abi_return_value) (ppc64_sysv_abi_return_value, ppc64_sysv_abi_return_value): Ditto. * ppc-linux-tdep.c (ppc_linux_in_sigtramp) (ppc_linux_at_sigtramp_return_path) (ppc_linux_skip_trampoline_code) (ppc_linux_memory_remove_breakpoint, ppc_linux_return_value): * rs6000-tdep.c (rs6000_value_to_register) (rs6000_register_to_value): Ditto. * ppc-tdep.h (ppc_sysv_abi_return_value) (ppc64_sysv_abi_return_value, ppc_sysv_abi_broken_return_value) (ppc_linux_memory_remove_breakpoint): Ditto.
Diffstat (limited to 'gdb/ppc-linux-tdep.c')
-rw-r--r--gdb/ppc-linux-tdep.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c
index 6b69573..e6d8941 100644
--- a/gdb/ppc-linux-tdep.c
+++ b/gdb/ppc-linux-tdep.c
@@ -157,7 +157,7 @@ ppc_linux_in_sigtramp (CORE_ADDR pc, char *func_name)
CORE_ADDR lr;
CORE_ADDR sp;
CORE_ADDR tramp_sp;
- char buf[4];
+ gdb_byte buf[4];
CORE_ADDR handler;
lr = read_register (gdbarch_tdep (current_gdbarch)->ppc_lr_regnum);
@@ -205,7 +205,7 @@ insn_is_sigreturn (unsigned long pcinsn)
static int
ppc_linux_at_sigtramp_return_path (CORE_ADDR pc)
{
- char buf[12];
+ gdb_byte buf[12];
unsigned long pcinsn;
if (target_read_memory (pc - 4, buf, sizeof (buf)) != 0)
return 0;
@@ -224,7 +224,7 @@ ppc_linux_at_sigtramp_return_path (CORE_ADDR pc)
static CORE_ADDR
ppc_linux_skip_trampoline_code (CORE_ADDR pc)
{
- char buf[4];
+ gdb_byte buf[4];
struct obj_section *sect;
struct objfile *objfile;
unsigned long insn;
@@ -317,7 +317,8 @@ ppc_linux_skip_trampoline_code (CORE_ADDR pc)
/* Fetch the string; we don't know how long it is. Is it possible
that the following will fail because we're trying to fetch too
much? */
- if (target_read_memory (strtab + symidx, symname, sizeof (symname)) != 0)
+ if (target_read_memory (strtab + symidx, (gdb_byte *) symname,
+ sizeof (symname)) != 0)
return 0;
/* This might not work right if we have multiple symbols with the
@@ -455,12 +456,13 @@ ppc_linux_skip_trampoline_code (CORE_ADDR pc)
regard to removing breakpoints in some potentially self modifying
code. */
int
-ppc_linux_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
+ppc_linux_memory_remove_breakpoint (CORE_ADDR addr,
+ gdb_byte *contents_cache)
{
const unsigned char *bp;
int val;
int bplen;
- char old_contents[BREAKPOINT_MAX];
+ gdb_byte old_contents[BREAKPOINT_MAX];
/* Determine appropriate breakpoint contents and size for this address. */
bp = BREAKPOINT_FROM_PC (&addr, &bplen);
@@ -485,8 +487,8 @@ ppc_linux_memory_remove_breakpoint (CORE_ADDR addr, char *contents_cache)
static enum return_value_convention
ppc_linux_return_value (struct gdbarch *gdbarch, struct type *valtype,
- struct regcache *regcache, void *readbuf,
- const void *writebuf)
+ struct regcache *regcache, gdb_byte *readbuf,
+ const gdb_byte *writebuf)
{
if ((TYPE_CODE (valtype) == TYPE_CODE_STRUCT
|| TYPE_CODE (valtype) == TYPE_CODE_UNION)