Moving to GDB_MULTI_ARCH_PARTIAL

Andrew Cagney ac131313@cygnus.com
Thu Feb 7 23:08:00 GMT 2002


> 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



More information about the Gdb mailing list