From 0d99fdb99176163c1b679d271d86c50cc0247231 Mon Sep 17 00:00:00 2001 From: Randolph Chung Date: Sun, 16 May 2004 04:33:41 +0000 Subject: [PATCH] 2004-05-15 Randolph Chung * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs as pointer instead of array reference since HPUX compiler does not accept unsized array arguments. * somsolib.c (dld_flags_buffer): Use constant array size. --- gdb/ChangeLog | 7 +++++++ gdb/hppa-tdep.h | 2 +- gdb/somsolib.c | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 04e8da8a893..9edd7d2b57f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2004-05-15 Randolph Chung + + * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs + as pointer instead of array reference since HPUX compiler does + not accept unsized array arguments. + * somsolib.c (dld_flags_buffer): Use constant array size. + 2004-05-15 Mark Kettenis * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal diff --git a/gdb/hppa-tdep.h b/gdb/hppa-tdep.h index 816e15ea9d7..f90860e827a 100644 --- a/gdb/hppa-tdep.h +++ b/gdb/hppa-tdep.h @@ -194,7 +194,7 @@ int hppa_sign_extend (unsigned int, unsigned int); void 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, enum lval_type *lvalp, CORE_ADDR *addrp, int *realnump, void *valuep); diff --git a/gdb/somsolib.c b/gdb/somsolib.c index 5f4ecc8500d..38a318692f3 100644 --- a/gdb/somsolib.c +++ b/gdb/somsolib.c @@ -1064,7 +1064,7 @@ som_solib_remove_inferior_hook (int pid) CORE_ADDR addr; struct minimal_symbol *msymbol; int status; - char dld_flags_buffer[TARGET_INT_BIT / TARGET_CHAR_BIT]; + char dld_flags_buffer[4]; unsigned int dld_flags_value; struct cleanup *old_cleanups = save_inferior_ptid (); -- 2.30.2