From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22316 invoked by alias); 2 Mar 2012 01:00:37 -0000 Received: (qmail 22302 invoked by uid 22791); 2 Mar 2012 01:00:36 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Mar 2012 01:00:23 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1S3Gr8-0001qS-BW from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 01 Mar 2012 17:00:22 -0800 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 1 Mar 2012 16:59:48 -0800 Received: from localhost.localdomain (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.1.289.1; Thu, 1 Mar 2012 17:00:21 -0800 From: Yao Qi To: Subject: [patch 0/2] OO tracepoint_action Date: Fri, 02 Mar 2012 01:00:00 -0000 Message-ID: <1330650011-31899-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain 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: 2012-03/txt/msg00063.txt.bz2 Hi, When modifying GDBserver to send various types of tracepoint_actions to agent, I noticed there has been three places using "switch/case" blocks for different types of tracepoint_action, and I don't like to add one more. It should be cleaner to rewrite them in an OO way. So these patches come up.