From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20989 invoked by alias); 28 Nov 2006 01:04:34 -0000 Received: (qmail 20978 invoked by uid 22791); 28 Nov 2006 01:04:33 -0000 X-Spam-Check-By: sourceware.org Received: from gateway-1237.mvista.com (HELO gateway-1237.mvista.com) (63.81.120.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Nov 2006 01:04:28 +0000 Received: from [10.0.4.48] (gupta1.mvista.com [10.0.4.48]) by hermes.mvista.com (Postfix) with ESMTP id 2DB281C17E for ; Mon, 27 Nov 2006 17:04:26 -0800 (PST) Message-ID: <456B8B19.8050403@mvista.com> Date: Tue, 28 Nov 2006 01:04:00 -0000 From: Nitin Gupta User-Agent: Thunderbird 1.5.0.7 (X11/20060913) MIME-Version: 1.0 To: gdb@sourceware.org Subject: [PATCH]: Clarify the warning displayed when you debug a core file for the wrong architecture. Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00191.txt.bz2 Pushing one of the old patches from Daniel into FSF. 2002-08-30 Daniel Jacobowitz * corelow.c (get_core_register_section): Clarify warning. Index: gdb-6.3.90_20051109/gdb/corelow.c =================================================================== --- gdb-6.3.90_20051109.orig/gdb/corelow.c 2005-07-04 13:29:10.000000000 +0000 +++ gdb-6.3.90_20051109/gdb/corelow.c 2005-11-09 23:23:54.000000000 +0000 @@ -462,7 +462,10 @@ if (! section) { if (required) + { warning (_("Couldn't find %s registers in core file."), human_name); + warning (_("Core file may be for a different architecture.\n")); + } return; }