diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-05-24 21:52:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-05-24 21:52:38 +0000 |
commit | d34436e841271678f30b83e20f1521242a8572c7 (patch) | |
tree | 633b52f0d8bed64244a78c86c23752a0d46d3f01 | |
parent | bf2ca189e878405c46e2f3208f2b80d1ac331a53 (diff) | |
download | gdb-d34436e841271678f30b83e20f1521242a8572c7.zip gdb-d34436e841271678f30b83e20f1521242a8572c7.tar.gz gdb-d34436e841271678f30b83e20f1521242a8572c7.tar.bz2 |
* netbsd-core.c: Correctly indent section that sets architecture
from machine ID.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/netbsd-core.c | 100 |
2 files changed, 54 insertions, 51 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 23ed4c8..dab90b4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2004-05-24 Mark Kettenis <kettenis@gnu.org> - + + * netbsd-core.c: Correctly indent section that sets architecture + from machine ID. + From Miod Vallat <miod@online.fr>: * m88kopenbsd.c: New file. * targets.c (m88k_openbsd_vec): New. diff --git a/bfd/netbsd-core.c b/bfd/netbsd-core.c index 3e6caae..b7dfcd6 100644 --- a/bfd/netbsd-core.c +++ b/bfd/netbsd-core.c @@ -166,56 +166,56 @@ netbsd_core_file_p (abfd) offset += coreseg.c_size; } - /* Set architecture from machine ID. */ - switch (CORE_GETMID (core)) - { - case M_ALPHA_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_alpha, 0); - break; - - case M_ARM6_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_arm, bfd_mach_arm_3); - break; - - case M_X86_64_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_x86_64); - break; - - case M_386_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_i386_i386); - break; - - case M_68K_NETBSD: - case M_68K4K_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_m68k, 0); - break; - - case M_88K_OPENBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_m88k, 0); - break; - - case M_HPPA_OPENBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_hppa, bfd_mach_hppa11); - break; - - case M_POWERPC_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_powerpc, bfd_mach_ppc); - break; - - case M_SPARC_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc); - break; - - case M_SPARC64_NETBSD: - case M_SPARC64_OPENBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc_v9); - break; - - case M_VAX_NETBSD: - case M_VAX4K_NETBSD: - bfd_default_set_arch_mach (abfd, bfd_arch_vax, 0); - break; - } + /* Set architecture from machine ID. */ + switch (CORE_GETMID (core)) + { + case M_ALPHA_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_alpha, 0); + break; + + case M_ARM6_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_arm, bfd_mach_arm_3); + break; + + case M_X86_64_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_x86_64); + break; + + case M_386_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_i386, bfd_mach_i386_i386); + break; + + case M_68K_NETBSD: + case M_68K4K_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_m68k, 0); + break; + + case M_88K_OPENBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_m88k, 0); + break; + + case M_HPPA_OPENBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_hppa, bfd_mach_hppa11); + break; + + case M_POWERPC_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_powerpc, bfd_mach_ppc); + break; + + case M_SPARC_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc); + break; + + case M_SPARC64_NETBSD: + case M_SPARC64_OPENBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_sparc, bfd_mach_sparc_v9); + break; + + case M_VAX_NETBSD: + case M_VAX4K_NETBSD: + bfd_default_set_arch_mach (abfd, bfd_arch_vax, 0); + break; + } /* OK, we believe you. You're a core file (sure, sure). */ return abfd->xvec; |