This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Move catch syscall to inferior-data.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]