From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28053 invoked by alias); 18 Aug 2002 15:41:06 -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 28042 invoked from network); 18 Aug 2002 15:41:05 -0000 Received: from unknown (HELO localhost.redhat.com) (24.112.240.27) by sources.redhat.com with SMTP; 18 Aug 2002 15:41:05 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 7F2BF3D34; Sun, 18 Aug 2002 11:41:01 -0400 (EDT) Message-ID: <3D5FC00D.50001@ges.redhat.com> Date: Sun, 18 Aug 2002 08:41:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020810 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jason R Thorpe , gdb-patches@sources.redhat.com Subject: [patch/rfc] Don't complain about unknown OSABI Content-Type: multipart/mixed; boundary="------------000908030409060302050003" X-SW-Source: 2002-08/txt/msg00498.txt.bz2 This is a multi-part message in MIME format. --------------000908030409060302050003 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 329 Hello, The attached patch removes the warning message that is printed when the OSABI is unknown (all the sniffers failed). When debugging an embedded executable, there is no OSABI info. Hence I don't think the warning should be issued. This can be seen when debugging a GCC created, mips-elf executable. thoughts? Andrew --------------000908030409060302050003 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 901 2002-08-18 Andrew Cagney * osabi.c (gdbarch_init_osabi): Don't complain about an unknown ABI. Index: osabi.c =================================================================== RCS file: /cvs/src/src/gdb/osabi.c,v retrieving revision 1.5 diff -u -r1.5 osabi.c --- osabi.c 27 Jul 2002 01:28:43 -0000 1.5 +++ osabi.c 18 Aug 2002 13:53:49 -0000 @@ -232,13 +232,8 @@ if (osabi == GDB_OSABI_UNKNOWN) { - /* Don't complain about not knowing the OS ABI if we don't - have an inferior. */ - if (info.abfd) - fprintf_filtered - (gdb_stderr, "GDB doesn't recognize the OS ABI of the inferior. " - "Attempting to continue with the default %s settings", - bfd_printable_arch_mach (arch_info->arch, arch_info->mach)); + /* Don't complain about not knowing the OS ABI. Assume the user + knows what they are doing. */ return; } --------------000908030409060302050003--