X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fdicos-tdep.c;h=3ef9114b10579ad907b4f81bb28a24ee0ed260ac;hb=f81e7e2db6d1aaf47561e54356aee12b585533c2;hp=0cc6ba3722f15b98dbf5ea0f21d4da1612f499de;hpb=0963b4bd458eab010b3b19c9ffd8eb790f2cd06c;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/dicos-tdep.c b/gdb/dicos-tdep.c index 0cc6ba3722..3ef9114b10 100644 --- a/gdb/dicos-tdep.c +++ b/gdb/dicos-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent, architecture-independent code for DICOS, for GDB. - Copyright (C) 2009, 2010, 2011 Free Software Foundation, Inc. + Copyright (C) 2009-2019 Free Software Foundation, Inc. This file is part of GDB. @@ -19,17 +19,15 @@ #include "defs.h" #include "osabi.h" -#include "gdb_string.h" #include "solib.h" #include "solib-target.h" #include "inferior.h" #include "dicos-tdep.h" +#include "gdbarch.h" void dicos_init_abi (struct gdbarch *gdbarch) { - struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - set_solib_ops (gdbarch, &solib_target_so_ops); /* Every process, although has its own address space, sees the same @@ -43,8 +41,8 @@ dicos_init_abi (struct gdbarch *gdbarch) /* There's no (standard definition of) entry point or a guaranteed text location with a symbol where to place the call dummy, so we - put it on the stack. */ - set_gdbarch_call_dummy_location (gdbarch, ON_STACK); + need it on the stack. Rely on i386_gdbarch_init used also for + amd64 to set up ON_STACK inferior calls. */ /* DICOS rewinds the PC itself. */ set_gdbarch_decr_pc_after_break (gdbarch, 0); @@ -72,7 +70,7 @@ dicos_load_module_p (bfd *abfd, int header_size) if (!section) return 0; - if (bfd_section_size (abfd, section) != header_size) + if (bfd_section_size (section) != header_size) return 0; /* Dicos LMs always have a "Dicos_loadModuleInfo" symbol @@ -91,7 +89,7 @@ dicos_load_module_p (bfd *abfd, int header_size) { long i, symcount; - symbol_table = xmalloc (storage_needed); + symbol_table = (asymbol **) xmalloc (storage_needed); symcount = bfd_canonicalize_symtab (abfd, symbol_table); if (symcount < 0)