From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16142 invoked by alias); 12 Mar 2012 14:14:22 -0000 Received: (qmail 16071 invoked by uid 22791); 12 Mar 2012 14:14:19 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 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; Mon, 12 Mar 2012 14:14:05 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1S760i-0005Lg-MZ from Yao_Qi@mentor.com ; Mon, 12 Mar 2012 07:14:04 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 12 Mar 2012 07:14:03 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.1.289.1; Mon, 12 Mar 2012 07:14:02 -0700 Message-ID: <4F5E049F.5040407@codesourcery.com> Date: Mon, 12 Mar 2012 14:14:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Pedro Alves CC: Subject: Re: [PATCH] Move catch syscall to inferior-data. References: <1331554677-12906-1-git-send-email-yao@codesourcery.com> <4F5DFF44.5020005@redhat.com> In-Reply-To: <4F5DFF44.5020005@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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/msg00398.txt.bz2 On 03/12/2012 09:51 PM, Pedro Alves wrote: >> > After trying some different methods, I realize that it is not a good >> > way to put "DEF_VEC_I(foo)" in header file. > > Right. Just put DEF_VEC_I(int) in gdb_vecs.h and include that in > places that need it. Right, gdb_vecs.h can guarantee each DEF_VEC_I is included only once. IMO, this patch is still beneficial, because inferior.h is de-coupled from breakpoint.h with this patch applied. -- Yao (齐尧)