This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Move catch syscall to inferior-data.
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 12 Mar 2012 13:51:00 +0000
- Subject: Re: [PATCH] Move catch syscall to inferior-data.
- References: <1331554677-12906-1-git-send-email-yao@codesourcery.com>
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