From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2277 invoked by alias); 31 Dec 2006 21:59:41 -0000 Received: (qmail 2268 invoked by uid 22791); 31 Dec 2006 21:59:41 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (192.114.186.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 31 Dec 2006 21:59:36 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-229-218-43.inter.net.il [84.229.218.43]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id BKJ40590 (AUTH halo1); Sun, 31 Dec 2006 23:59:25 +0200 (IST) Date: Sun, 31 Dec 2006 21:59:00 -0000 Message-Id: From: Eli Zaretskii To: Joel Brobecker CC: gdb-patches@sourceware.org In-reply-to: <20061231060649.GF25236@adacore.com> (message from Joel Brobecker on Sun, 31 Dec 2006 10:06:49 +0400) Subject: Re: [RFC/RFA] Add support for catch Ada exceptions (take 2) Reply-to: Eli Zaretskii References: <20061231060649.GF25236@adacore.com> X-IsSubscribed: yes 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: 2006-12/txt/msg00425.txt.bz2 > Date: Sun, 31 Dec 2006 10:06:49 +0400 > From: Joel Brobecker > > + switch (b->type) > + { > + case bp_catch_exception: > + if (b->addr_string != NULL) > + { > + const char *template = _("`%s' Ada exception"); > + char *msg = alloca (strlen (template) + strlen (b->addr_string)); > + > + sprintf (msg, _("`%s' Ada exception"), b->addr_string); Why don't you use `template' instead of having two identical strings?