This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Some (HP-UX) PA-RISC fixes
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sourceware dot org
- Date: Mon, 18 Jul 2005 22:34:17 +0200 (CEST)
- Subject: [commit] Some (HP-UX) PA-RISC fixes
The attached patch gets rids of a few more gdb_byte-related warnings.
Committed as obvious,
Mark
Index: ChangeLog
from 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>
Index: hppa-hpux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-hpux-tdep.c,v
retrieving revision 1.41
diff -u -p -r1.41 hppa-hpux-tdep.c
--- hppa-hpux-tdep.c 11 Feb 2005 04:05:50 -0000 1.41
+++ hppa-hpux-tdep.c 18 Jul 2005 20:31:56 -0000
@@ -1225,11 +1225,11 @@ hppa_hpux_sigtramp_frame_this_id (struct
static void
hppa_hpux_sigtramp_frame_prev_register (struct frame_info *next_frame,
- void **this_prologue_cache,
- int regnum, int *optimizedp,
- enum lval_type *lvalp,
- CORE_ADDR *addrp,
- int *realnump, void *valuep)
+ void **this_prologue_cache,
+ int regnum, int *optimizedp,
+ enum lval_type *lvalp,
+ CORE_ADDR *addrp,
+ int *realnump, gdb_byte *valuep)
{
struct hppa_hpux_sigtramp_unwind_cache *info
= hppa_hpux_sigtramp_frame_unwind_cache (next_frame, this_prologue_cache);
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.210
diff -u -p -r1.210 hppa-tdep.c
--- hppa-tdep.c 19 Jun 2005 21:25:47 -0000 1.210
+++ hppa-tdep.c 18 Jul 2005 20:31:59 -0000
@@ -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,
- 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software
- Foundation, Inc.
+ 1996, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
+ Free Software Foundation, Inc.
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
@@ -1166,16 +1166,13 @@ hppa64_return_value (struct gdbarch *gdb
static CORE_ADDR
-hppa32_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
- CORE_ADDR addr,
+hppa32_convert_from_func_ptr_addr (struct gdbarch *gdbarch, CORE_ADDR addr,
struct target_ops *targ)
{
if (addr & 2)
{
- CORE_ADDR plabel;
-
- plabel = addr & ~3;
- target_read_memory(plabel, (char *)&addr, 4);
+ CORE_ADDR plabel = addr & ~3;
+ return read_memory_typed_address (plabel, builtin_type_void_func_ptr);
}
return addr;
@@ -2599,7 +2596,7 @@ hppa_frame_prev_register_helper (struct
struct trad_frame_saved_reg saved_regs[],
int regnum, int *optimizedp,
enum lval_type *lvalp, CORE_ADDR *addrp,
- int *realnump, void *valuep)
+ int *realnump, gdb_byte *valuep)
{
struct gdbarch *arch = get_frame_arch (next_frame);
Index: hppa-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.h,v
retrieving revision 1.20
diff -u -p -r1.20 hppa-tdep.h
--- hppa-tdep.h 19 Dec 2004 21:09:40 -0000 1.20
+++ hppa-tdep.h 18 Jul 2005 20:32:01 -0000
@@ -1,5 +1,6 @@
-/* Common target dependent code for GDB on HPPA systems.
- Copyright 2003, 2004 Free Software Foundation, Inc.
+/* Target-dependent code for the HP PA-RISC architecture.
+
+ Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -226,12 +227,12 @@ int hppa_low_sign_extend (unsigned int,
int hppa_sign_extend (unsigned int, unsigned int);
CORE_ADDR hppa_symbol_address(const char *sym);
-void
-hppa_frame_prev_register_helper (struct frame_info *next_frame,
- struct trad_frame_saved_reg *saved_regs,
- int regnum, int *optimizedp,
- enum lval_type *lvalp, CORE_ADDR *addrp,
- int *realnump, void *valuep);
+extern void
+ hppa_frame_prev_register_helper (struct frame_info *next_frame,
+ struct trad_frame_saved_reg *saved_regs,
+ int regnum, int *optimizedp,
+ enum lval_type *lvalp, CORE_ADDR *addrp,
+ int *realnump, gdb_byte *valuep);
extern CORE_ADDR hppa_read_pc (ptid_t ptid);
extern void hppa_write_pc (CORE_ADDR pc, ptid_t ptid);