From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25628 invoked by alias); 12 Mar 2012 13:51:22 -0000 Received: (qmail 25619 invoked by uid 22791); 12 Mar 2012 13:51:21 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Mar 2012 13:51:06 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2CDp2bE005745 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 12 Mar 2012 09:51:02 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q2CDp1A8032413; Mon, 12 Mar 2012 09:51:01 -0400 Message-ID: <4F5DFF44.5020005@redhat.com> Date: Mon, 12 Mar 2012 13:51:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.1) Gecko/20120216 Thunderbird/10.0.1 MIME-Version: 1.0 To: Yao Qi CC: gdb-patches@sourceware.org Subject: Re: [PATCH] Move catch syscall to inferior-data. References: <1331554677-12906-1-git-send-email-yao@codesourcery.com> In-Reply-To: <1331554677-12906-1-git-send-email-yao@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00397.txt.bz2 On 03/12/2012 12:17 PM, Yao Qi wrote: > Hi, > when I am using DEF_VEC_I(int)/VEC(int) in my c code, which will be > compiled with GDB and GDBserver, DEF_VEC_I(int) in breakpoint.h makes > some troubles to me, because my c code has to include breakpoint.h > indirectly when compiled for GDB, and my code either gets an error > that VEC_int is undefined or redefined (vec.c has been moved to common/ > in my local tree). > > 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. -- Pedro Alves