From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2521 invoked by alias); 4 May 2013 17:52:07 -0000 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 Received: (qmail 2507 invoked by uid 89); 4 May 2013 17:52:06 -0000 X-Spam-SWARE-Status: No, score=-5.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-vc0-f179.google.com (HELO mail-vc0-f179.google.com) (209.85.220.179) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 04 May 2013 17:52:06 +0000 Received: by mail-vc0-f179.google.com with SMTP id hz10so2173917vcb.24 for ; Sat, 04 May 2013 10:52:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=Kt/xBod4OZw9kfr8TeXtgE4fnQUAlUP3J933xqCcQZA=; b=XFgZ/PVpQ6GEzclKVtb4F7Y8iAPoEkwHtuUE9w1fL5W/mS5+4fx74tKsYufYc752gT XORaK0GwwcSekj0JqhCzRkGA4JwmifG/mmzNrPRuxUWQiTZ7wSoKH03OsMQtdgELdr1q nd2HmH0hpjKcDbLmNOZ1QaJ7qOey5cpGJ0elWlX+Sa2OiXfvLglduT9I3xtx9E8soupt JhZhsSywr0eVjJlJl4gq1Qkddmn+PtHBwcj6DSbMcErhvfwTWdk/OP6yEvZXe54oNPjm VZZnlcOBQvZYXEFZhaRqP4Xrm0DP2lGNKmzwXm68pXW+TWr/JBuU4QoWcp/chEt5Gh10 YQ8w== MIME-Version: 1.0 X-Received: by 10.58.88.4 with SMTP id bc4mr157659veb.48.1367689924560; Sat, 04 May 2013 10:52:04 -0700 (PDT) Received: by 10.220.173.7 with HTTP; Sat, 4 May 2013 10:52:04 -0700 (PDT) In-Reply-To: <20130501194430.GA16791@host2.jankratochvil.net> References: <5180EE37.3020507@redhat.com> <20130501152116.GA7529@host2.jankratochvil.net> <518162F2.1000704@redhat.com> <20130501194430.GA16791@host2.jankratochvil.net> Date: Sat, 04 May 2013 17:52:00 -0000 Message-ID: Subject: Re: Cleanups and Exception handlers From: Doug Evans To: Jan Kratochvil Cc: Phil Muldoon , gdb Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQl+92CJHSjxVYvq+DHXLbbiWG6jpRUfmYSnKY2UDhckkaJ6qLblBx/0RbbbX7iL/LUQQjlnqiNYMYtSNDo9bknRrOKQ39lnRMudN8B3BVCcnRvzr1OolhrDAH+AakctD8gRzJVAtvqYdIZp0JvhNwYHS39Zbz6FUmSdBfhJwVNjsiiS0er6oLLuHgfaSe92IfEwLbYf X-SW-Source: 2013-05/txt/msg00024.txt.bz2 On Wed, May 1, 2013 at 12:44 PM, Jan Kratochvil wrote: > On Wed, 01 May 2013 20:46:10 +0200, Phil Muldoon wrote: >> > It seemed to me that there were too many TRY_CATCH blocks even in cases where >> > nothing can throw an exception. >> >> This is because most (though I have no audited all of them) calls to >> ui_out_* use *_filtered function calls (at least when the output is >> directed to the CLI). These can be interrupted from GDB and Python >> has to handle the resulting GDB generated keyboard interruption >> exception. It's a massive pain in the neck. ;) > > Oops, OK. A comment in the code explaining why things are the way they are would be most welcome.