From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23483 invoked by alias); 11 Dec 2011 17:46:08 -0000 Received: (qmail 23473 invoked by uid 22791); 11 Dec 2011 17:46:08 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 11 Dec 2011 17:45:55 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id F1AF12BAAC8; Sun, 11 Dec 2011 12:45:54 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Hgy5LllbMq-B; Sun, 11 Dec 2011 12:45:54 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id DC0A22BAAC6; Sun, 11 Dec 2011 12:45:54 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id B80F0145615; Sun, 11 Dec 2011 09:45:54 -0800 (PST) From: Joel Brobecker To: gdb-patches@sourceware.org Cc: Joel Brobecker Subject: [commit/Ada] improve message when cannot insert Ada exception catchpoint. Date: Sun, 11 Dec 2011 18:04:00 -0000 Message-Id: <1323625553-21988-1-git-send-email-brobecker@adacore.com> In-Reply-To: <20111207100101.GC21915@adacore.com> References: <20111207100101.GC21915@adacore.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00334.txt.bz2 Hello, This tries to improve the error message pointed out by Pedro. I think the problem was the generality of the error message, so fixed thusly. gdb/ChangeLog: * ada-lang.c (ada_exception_support_info_sniffer): Improve error message. Tested on x86_64-linux, checked in. --- gdb/ChangeLog | 5 +++++ gdb/ada-lang.c | 2 +- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9089e21..28bc272 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2011-12-11 Joel Brobecker + * ada-lang.c (ada_exception_support_info_sniffer): Improve + error message. + +2011-12-11 Joel Brobecker + * ada-lang.c (struct ada_inferior_data) [exception_info]: New field. (exception_info): Delete. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index ff43ca4..30a561d 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -10757,7 +10757,7 @@ ada_exception_support_info_sniffer (void) out by the linker... In any case, at this point it is not worth supporting this feature. */ - error (_("Cannot insert catchpoints in this configuration.")); + error (_("Cannot insert Ada exception catchpoints in this configuration.")); } /* True iff FRAME is very likely to be that of a function that is -- 1.7.1