From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11945 invoked by alias); 31 Dec 2006 22:11:49 -0000 Received: (qmail 11937 invoked by uid 22791); 31 Dec 2006 22:11:49 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 31 Dec 2006 22:11:42 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.13.8/8.13.8) with ESMTP id kBVMBYv4011709; Sun, 31 Dec 2006 23:11:35 +0100 (CET) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.13.8/8.13.8/Submit) id kBVMBYXX009807; Sun, 31 Dec 2006 23:11:34 +0100 (CET) Date: Sun, 31 Dec 2006 22:11:00 -0000 Message-Id: <200612312211.kBVMBYXX009807@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: brobecker@adacore.com CC: gdb-patches@sourceware.org In-reply-to: (message from Eli Zaretskii on Sun, 31 Dec 2006 23:59:27 +0200) Subject: Re: [RFC/RFA] Add support for catch Ada exceptions (take 2) References: <20061231060649.GF25236@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: 2006-12/txt/msg00428.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); Joel, could you use xsnprintf() instead of sprintf()? Mark