From f27bb101a59e704fc2e6d6984d622d750537a7dc Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Wed, 14 Jan 1998 23:13:56 +0000 Subject: [PATCH] Remove GCC-isms --- gdb/ChangeLog | 10 ++++++++++ gdb/config/d30v/tm-d30v.h | 2 +- gdb/d30v-tdep.c | 2 ++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a782655eb9b..83b4e1f25d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +start-sanitize-d30v +Wed Jan 14 18:11:26 1998 Michael Meissner + + Patch from Jim Wilson. + * d30v-tdep.c (d30v_frame_find_saved_regs_offsets): Properly + declare void function before use. + + * config/d30v/tm-d30v.h (CALL_DUMMY): Initialize as { 0 }, not {}. + +end-sanitize-d30v Tue Jan 13 16:38:48 1998 Fred Fish * configure.in (--with-mmalloc): Add new configure arg to use the diff --git a/gdb/config/d30v/tm-d30v.h b/gdb/config/d30v/tm-d30v.h index 01aee670b4d..bd15ef53fac 100644 --- a/gdb/config/d30v/tm-d30v.h +++ b/gdb/config/d30v/tm-d30v.h @@ -270,7 +270,7 @@ extern void d30v_frame_find_saved_regs PARAMS ((struct frame_info *, struct fram When it hits the breakpoint, clear the break point and pop the old register contents off the stack. */ -#define CALL_DUMMY { } +#define CALL_DUMMY { 0 } #define PUSH_DUMMY_FRAME #define CALL_DUMMY_START_OFFSET 0 #define CALL_DUMMY_LOCATION AT_ENTRY_POINT diff --git a/gdb/d30v-tdep.c b/gdb/d30v-tdep.c index cca76d297d2..1add1db54ec 100644 --- a/gdb/d30v-tdep.c +++ b/gdb/d30v-tdep.c @@ -35,6 +35,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ void d30v_frame_find_saved_regs PARAMS ((struct frame_info *fi, struct frame_saved_regs *fsr)); +void d30v_frame_find_saved_regs_offsets PARAMS ((struct frame_info *fi, + struct frame_saved_regs *fsr)); static void d30v_pop_dummy_frame PARAMS ((struct frame_info *fi)); static void d30v_print_flags PARAMS ((void)); static void print_flags_command PARAMS ((char *, int)); -- 2.30.2