From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12951 invoked by alias); 1 Aug 2002 21:38:20 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 12943 invoked from network); 1 Aug 2002 21:38:19 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 1 Aug 2002 21:38:19 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g71LPml24114 for ; Thu, 1 Aug 2002 17:25:48 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g71LcHu10569 for ; Thu, 1 Aug 2002 17:38:17 -0400 Received: from romulus.sfbay.redhat.com (IDENT:WC5R98lttWZH5zFA+DqFnKmo2PUsD01Y@romulus.sfbay.redhat.com [172.16.27.251]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id g71LcGm08291 for ; Thu, 1 Aug 2002 14:38:16 -0700 Received: (from kev@localhost) by romulus.sfbay.redhat.com (8.11.6/8.11.6) id g71LcEn29882 for gdb-patches@sources.redhat.com; Thu, 1 Aug 2002 14:38:14 -0700 Date: Thu, 01 Aug 2002 14:38:00 -0000 From: Kevin Buettner Message-Id: <1020801213814.ZM29881@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] mips-tdep.c: Add/update comments MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-08/txt/msg00022.txt.bz2 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in comment. Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.86 diff -u -p -r1.86 mips-tdep.c --- mips-tdep.c 1 Aug 2002 19:57:40 -0000 1.86 +++ mips-tdep.c 1 Aug 2002 21:34:20 -0000 @@ -4371,7 +4371,7 @@ mips_gdbarch_init (struct gdbarch_info i if (info.abfd == NULL && arches != NULL) mips_abi = gdbarch_tdep (arches->gdbarch)->found_abi; - /* Try the architecture for any hint of the corect ABI */ + /* Try the architecture for any hint of the correct ABI. */ if (mips_abi == MIPS_ABI_UNKNOWN && info.bfd_arch_info != NULL && info.bfd_arch_info->arch == bfd_arch_mips) @@ -4387,6 +4387,9 @@ mips_gdbarch_init (struct gdbarch_info i break; case bfd_mach_mips8000: case bfd_mach_mips10000: + /* On Irix, ELF64 executables use the N64 ABI. The + pseudo-sections which describe the ABI aren't present + on IRIX. (Even for executables created by gcc.) */ if (bfd_get_flavour (info.abfd) == bfd_target_elf_flavour && elf_elfheader (info.abfd)->e_ident[EI_CLASS] == ELFCLASS64) mips_abi = MIPS_ABI_N64; @@ -4665,6 +4668,8 @@ mips_gdbarch_init (struct gdbarch_info i set_gdbarch_address_to_pointer (gdbarch, address_to_signed_pointer); set_gdbarch_integer_to_address (gdbarch, mips_integer_to_address); + /* There are MIPS targets which do not yet use this since they still + define REGISTER_VIRTUAL_TYPE. */ set_gdbarch_register_virtual_type (gdbarch, mips_register_virtual_type); /* Hook in OS ABI-specific overrides, if they have been registered. */