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]Clean up the XML files for ARM


osing the prefix in the generated code is problematic for multi-arch (--
> enable-target=all) builds, because this way we're open for conflict between
> archs.  E.g., say we have
> 
>  arch1/linux.xml
>  arch1/linux.c
>  arch2/linux.xml
>  arch2/linux.c
> 
> Then we end up with multiple conflicting definitions of "struct target_desc
> *tdesc_linux;"
> 
> I think we should fix this by making the directory name be a prefix in the
> generated code.  That is, in the ARM case, these hunks would disappear from
> your patch:
> 
> > -struct target_desc *tdesc_arm_with_m_vfp_d16;
> > +struct target_desc *tdesc_with_m_vfp_d16;
> >  static void
> > -initialize_tdesc_arm_with_m_vfp_d16 (void)
> > +initialize_tdesc_with_m_vfp_d16 (void)
> >  {
> 
> Would you like to work on this?
> 
> --
> Pedro Alves
> 

You are right. I will work on this.

BR,
Terry




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