* hppa-tdep.h (hppa_frame_prev_register_helper): Change types of
last argument to `gdb_byte *'. * hppa-tdep.c (hppa32_convert_from_func_ptr_addr): Rewrite. (hppa_frame_prev_register_helper): Change types of last argument to `gdb_byte *'. * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_prev_register): Change types of last argument to `gdb_byte *'.
This commit is contained in:
parent
598b7a6f2b
commit
a7aad9aa6a
4 changed files with 31 additions and 23 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
2005-07-18 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* hppa-tdep.h (hppa_frame_prev_register_helper): Change types of
|
||||||
|
last argument to `gdb_byte *'.
|
||||||
|
* hppa-tdep.c (hppa32_convert_from_func_ptr_addr): Rewrite.
|
||||||
|
(hppa_frame_prev_register_helper): Change types of last argument
|
||||||
|
to `gdb_byte *'.
|
||||||
|
* hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_prev_register):
|
||||||
|
Change types of last argument to `gdb_byte *'.
|
||||||
|
|
||||||
2005-07-18 Mark Kettenis <kettenis@gnu.org>
|
2005-07-18 Mark Kettenis <kettenis@gnu.org>
|
||||||
Jason Molenda <jmolenda@apple.com>
|
Jason Molenda <jmolenda@apple.com>
|
||||||
|
|
||||||
|
|
|
@ -1229,7 +1229,7 @@ hppa_hpux_sigtramp_frame_prev_register (struct frame_info *next_frame,
|
||||||
int regnum, int *optimizedp,
|
int regnum, int *optimizedp,
|
||||||
enum lval_type *lvalp,
|
enum lval_type *lvalp,
|
||||||
CORE_ADDR *addrp,
|
CORE_ADDR *addrp,
|
||||||
int *realnump, void *valuep)
|
int *realnump, gdb_byte *valuep)
|
||||||
{
|
{
|
||||||
struct hppa_hpux_sigtramp_unwind_cache *info
|
struct hppa_hpux_sigtramp_unwind_cache *info
|
||||||
= hppa_hpux_sigtramp_frame_unwind_cache (next_frame, this_prologue_cache);
|
= hppa_hpux_sigtramp_frame_unwind_cache (next_frame, this_prologue_cache);
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/* Target-dependent code for the HP PA architecture, for GDB.
|
/* Target-dependent code for the HP PA-RISC architecture.
|
||||||
|
|
||||||
Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
|
Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
|
||||||
1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software
|
1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
||||||
Foundation, Inc.
|
Free Software Foundation, Inc.
|
||||||
|
|
||||||
Contributed by the Center for Software Science at the
|
Contributed by the Center for Software Science at the
|
||||||
University of Utah (pa-gdb-bugs@cs.utah.edu).
|
University of Utah (pa-gdb-bugs@cs.utah.edu).
|
||||||
|
@ -1166,16 +1166,13 @@ hppa64_return_value (struct gdbarch *gdbarch,
|
||||||
|
|
||||||
|
|
||||||
static CORE_ADDR
|
static CORE_ADDR
|
||||||
hppa32_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
|
hppa32_convert_from_func_ptr_addr (struct gdbarch *gdbarch, CORE_ADDR addr,
|
||||||
CORE_ADDR addr,
|
|
||||||
struct target_ops *targ)
|
struct target_ops *targ)
|
||||||
{
|
{
|
||||||
if (addr & 2)
|
if (addr & 2)
|
||||||
{
|
{
|
||||||
CORE_ADDR plabel;
|
CORE_ADDR plabel = addr & ~3;
|
||||||
|
return read_memory_typed_address (plabel, builtin_type_void_func_ptr);
|
||||||
plabel = addr & ~3;
|
|
||||||
target_read_memory(plabel, (char *)&addr, 4);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return addr;
|
return addr;
|
||||||
|
@ -2599,7 +2596,7 @@ hppa_frame_prev_register_helper (struct frame_info *next_frame,
|
||||||
struct trad_frame_saved_reg saved_regs[],
|
struct trad_frame_saved_reg saved_regs[],
|
||||||
int regnum, int *optimizedp,
|
int regnum, int *optimizedp,
|
||||||
enum lval_type *lvalp, CORE_ADDR *addrp,
|
enum lval_type *lvalp, CORE_ADDR *addrp,
|
||||||
int *realnump, void *valuep)
|
int *realnump, gdb_byte *valuep)
|
||||||
{
|
{
|
||||||
struct gdbarch *arch = get_frame_arch (next_frame);
|
struct gdbarch *arch = get_frame_arch (next_frame);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* Common target dependent code for GDB on HPPA systems.
|
/* Target-dependent code for the HP PA-RISC architecture.
|
||||||
Copyright 2003, 2004 Free Software Foundation, Inc.
|
|
||||||
|
Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of GDB.
|
This file is part of GDB.
|
||||||
|
|
||||||
|
@ -226,12 +227,12 @@ int hppa_low_sign_extend (unsigned int, unsigned int);
|
||||||
int hppa_sign_extend (unsigned int, unsigned int);
|
int hppa_sign_extend (unsigned int, unsigned int);
|
||||||
CORE_ADDR hppa_symbol_address(const char *sym);
|
CORE_ADDR hppa_symbol_address(const char *sym);
|
||||||
|
|
||||||
void
|
extern void
|
||||||
hppa_frame_prev_register_helper (struct frame_info *next_frame,
|
hppa_frame_prev_register_helper (struct frame_info *next_frame,
|
||||||
struct trad_frame_saved_reg *saved_regs,
|
struct trad_frame_saved_reg *saved_regs,
|
||||||
int regnum, int *optimizedp,
|
int regnum, int *optimizedp,
|
||||||
enum lval_type *lvalp, CORE_ADDR *addrp,
|
enum lval_type *lvalp, CORE_ADDR *addrp,
|
||||||
int *realnump, void *valuep);
|
int *realnump, gdb_byte *valuep);
|
||||||
|
|
||||||
extern CORE_ADDR hppa_read_pc (ptid_t ptid);
|
extern CORE_ADDR hppa_read_pc (ptid_t ptid);
|
||||||
extern void hppa_write_pc (CORE_ADDR pc, ptid_t ptid);
|
extern void hppa_write_pc (CORE_ADDR pc, ptid_t ptid);
|
||||||
|
|
Loading…
Add table
Reference in a new issue