This is the mail archive of the gdb@sources.redhat.com 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: Moving to GDB_MULTI_ARCH_PARTIAL


> In the mean time I'll re-build everything :-/


i386-aout:


gdbarch.h:1147: #error "Non multi-arch definition of REGISTER_CONVERTIBLE"
gdbarch.h:1151: warning: `REGISTER_CONVERTIBLE' redefined
tm.h:215: warning: this is the location of the previous definition
gdbarch.h:1375: #error "Non multi-arch definition of PUSH_ARGUMENTS"
gdbarch.h:1379: warning: `PUSH_ARGUMENTS' redefined
tm.h:242: warning: this is the location of the previous definition


looking around:

tm-i386.h:#define REGISTER_CONVERTIBLE(regnum) i386_register_convertible (regnum)
tm-ptx.h:#undef REGISTER_CONVERTIBLE
tm-ptx.h:#define REGISTER_CONVERTIBLE(N) \
tm-symmetry.h:#undef  REGISTER_CONVERTIBLE
tm-symmetry.h:#define REGISTER_CONVERTIBLE(N) \


this suggests REGISTER_CONVERTIBLE doesn't need to be immediatly converted.

However, it also explains why, at level one, it isn't strict about 
overriding macros.  Given a case like the i386, the base cpu may be 
multi-arched but the variants (tm-ptx.h and tm-symmetry.h) may not. 
This again lets them continue to build and work.

Andrew


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