From 9a13e99e206b8c400f1ea65869f90b8500731c4c Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Fri, 12 Nov 1993 18:59:43 +0000 Subject: * coff-solib.c (coff_solib_add): Cast result of alloca(). * m68k-tdep.c (m68k_saved_pc_after_call): Get rid of GDB_TARGET_IS_SUN3. Use more general SYSCALL_TRAP macro. * config/m68k/m68klynx.mh (NATDEPFILES): Remove exec.o (it's already in TDEPFILES). * config/m68k/tm-m68k.h (SAVED_PC_AFTER_CALL): Use m68k_saved_pc_after_call. * Remove all Sun3 specific stuff. * (FIX_CALL_DUMMY): Cast arg to bfd_putb32 to unsigned char *. * config/m68k/tm-m68klynx.h: Define SYSCALL_TRAP as trap #10. Disable REMOTE_BREAKPOINT mechanism. * config/m68k/tm-sun3.h: Get rid of GDB_TARGET_IS_SUN3. * Protect from multiple includion. * Move Sun3 specific stuff from tm-m68k.h to here. * Define SYSCALL_TRAP as trap #0. * Remove def of SAVED_PC_AFTER_CALL (now in tm-m68k.h). * gdbserver/low-lynx.c: Redo all register store/fetch stuff to make it portable for 386 and 68k. --- gdb/coff-solib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/coff-solib.c') diff --git a/gdb/coff-solib.c b/gdb/coff-solib.c index 01ffc9c6347..697fdac2d2a 100644 --- a/gdb/coff-solib.c +++ b/gdb/coff-solib.c @@ -67,7 +67,7 @@ coff_solib_add (arg_string, from_tty, target) libsize = bfd_section_size (exec_bfd, libsect); - lib = alloca (libsize); + lib = (unsigned char *) alloca (libsize); bfd_get_section_contents (exec_bfd, libsect, lib, 0, libsize); -- cgit v1.2.1