From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16048 invoked by alias); 18 Aug 2014 08:47:10 -0000 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 Received: (qmail 16000 invoked by uid 89); 18 Aug 2014 08:47:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 18 Aug 2014 08:47:06 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7I8l2uc003907 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 18 Aug 2014 04:47:03 -0400 Received: from blade.nx (ovpn-116-90.ams2.redhat.com [10.36.116.90]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7I8l1H7004061 for ; Mon, 18 Aug 2014 04:47:01 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 511262640D7 for ; Mon, 18 Aug 2014 09:47:00 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Subject: [PATCH 0/5] Make gdbserver use exceptions and cleanups Date: Mon, 18 Aug 2014 08:47:00 -0000 Message-Id: <1408351618-21013-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00290.txt.bz2 Hi all, gdbserver has the rudiments of an exception system, but it's kind of hacky. This series converts gdbserver to use the same exceptions and cleanups as GDB. This series is fairly minimal in that only the catch/cleanup code in what was "main" has been updated to use the new system. Other parts of gdbserver could likely be converted to TRY_CATCH and cleanups too, but that can be done on an as-needed basis if this patch is accepted. A side-effect of this patch is that some error messages will change slightly, and in cases with multiple errors the error messages will be printed in a different order. Built and regtested on RHEL 6.5 x86_64. Ok to commit? Thanks, Gary -- http://gbenson.net/