| OLD | NEW |
| 1 /* Target-dependent code for Cygwin running on i386's, for GDB. | 1 /* Target-dependent code for Cygwin running on i386's, for GDB. |
| 2 | 2 |
| 3 Copyright (C) 2003, 2007-2012 Free Software Foundation, Inc. | 3 Copyright (C) 2003, 2007-2012 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of GDB. | 5 This file is part of GDB. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
| 8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 (gdbarch, i386_windows_regset_from_core_section); | 250 (gdbarch, i386_windows_regset_from_core_section); |
| 251 set_gdbarch_core_xfer_shared_libraries | 251 set_gdbarch_core_xfer_shared_libraries |
| 252 (gdbarch, windows_core_xfer_shared_libraries); | 252 (gdbarch, windows_core_xfer_shared_libraries); |
| 253 set_gdbarch_core_pid_to_str (gdbarch, i386_windows_core_pid_to_str); | 253 set_gdbarch_core_pid_to_str (gdbarch, i386_windows_core_pid_to_str); |
| 254 | 254 |
| 255 set_gdbarch_auto_wide_charset (gdbarch, i386_cygwin_auto_wide_charset); | 255 set_gdbarch_auto_wide_charset (gdbarch, i386_cygwin_auto_wide_charset); |
| 256 | 256 |
| 257 /* Canonical paths on this target look like | 257 /* Canonical paths on this target look like |
| 258 `c:\Program Files\Foo App\mydll.dll', for example. */ | 258 `c:\Program Files\Foo App\mydll.dll', for example. */ |
| 259 set_gdbarch_has_dos_based_file_system (gdbarch, 1); | 259 set_gdbarch_has_dos_based_file_system (gdbarch, 1); |
| 260 |
| 261 set_gdbarch_iterate_over_objfiles_in_search_order |
| 262 (gdbarch, windows_iterate_over_objfiles_in_search_order); |
| 260 } | 263 } |
| 261 | 264 |
| 262 static enum gdb_osabi | 265 static enum gdb_osabi |
| 263 i386_cygwin_osabi_sniffer (bfd *abfd) | 266 i386_cygwin_osabi_sniffer (bfd *abfd) |
| 264 { | 267 { |
| 265 char *target_name = bfd_get_target (abfd); | 268 char *target_name = bfd_get_target (abfd); |
| 266 | 269 |
| 267 /* Interix also uses pei-i386. | 270 /* Interix also uses pei-i386. |
| 268 We need a way to distinguish between the two. */ | 271 We need a way to distinguish between the two. */ |
| 269 if (strcmp (target_name, "pei-i386") == 0) | 272 if (strcmp (target_name, "pei-i386") == 0) |
| (...skipping 21 matching lines...) Expand all Loading... |
| 291 gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_coff_flavour, | 294 gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_coff_flavour, |
| 292 i386_cygwin_osabi_sniffer); | 295 i386_cygwin_osabi_sniffer); |
| 293 | 296 |
| 294 /* Cygwin uses elf core dumps. */ | 297 /* Cygwin uses elf core dumps. */ |
| 295 gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour, | 298 gdbarch_register_osabi_sniffer (bfd_arch_i386, bfd_target_elf_flavour, |
| 296 i386_cygwin_osabi_sniffer); | 299 i386_cygwin_osabi_sniffer); |
| 297 | 300 |
| 298 gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_CYGWIN, | 301 gdbarch_register_osabi (bfd_arch_i386, 0, GDB_OSABI_CYGWIN, |
| 299 i386_cygwin_init_abi); | 302 i386_cygwin_init_abi); |
| 300 } | 303 } |
| OLD | NEW |