Cache the text section offset of shared libraries
[deliverable/binutils-gdb.git] / gdb / i386-cygwin-tdep.c
index 25c3cfcbb9882ea37100eccb9e74ef96e91509e5..cb66632648f7e644f21617a079820d08b321aa3d 100644 (file)
@@ -1,6 +1,6 @@
 /* Target-dependent code for Cygwin running on i386's, for GDB.
 
-   Copyright (C) 2003-2019 Free Software Foundation, Inc.
+   Copyright (C) 2003-2020 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -137,7 +137,7 @@ core_process_module_section (bfd *abfd, asection *sect, void *obj)
   /* The first module is the .exe itself.  */
   if (data->module_count != 0)
     windows_xfer_shared_library (module_name, base_addr,
-                                data->gdbarch, data->obstack);
+                                NULL, data->gdbarch, data->obstack);
   data->module_count++;
 
 out:
@@ -247,8 +247,9 @@ i386_cygwin_osabi_sniffer (bfd *abfd)
   return GDB_OSABI_UNKNOWN;
 }
 
+void _initialize_i386_cygwin_tdep ();
 void
-_initialize_i386_cygwin_tdep (void)
+_initialize_i386_cygwin_tdep ()
 {
   gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_coff_flavour,
                                   i386_cygwin_osabi_sniffer);
This page took 0.02461 seconds and 4 git commands to generate.