This is the first time I've multi-arched a macro, so I'd be grateful if someone who has done all this before could give this patch a quick once-over to ensure I've not done anything stupid. R. Richard Earnshaw * gdbarch.h (SMASH_TEXT_ADDRESS): Add multi-arch defines. * gdbarch.sh (SMASH_TEXT_ADDRESS): Add rule. * gdbarch.c (struct gdbarch): Add entry for it. (startup_gdbarch): Likewise. (gdbarch_alloc): Default it. (verify_gdbarch): Skip verify of it. (gdbarch_dump): Dump it. (gdbarch_smash_text_address): New function. * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS. * dbxread.c: Likewise. * dwarfread.c: Likewise. * elfread.c: Likewise. * somread.c: Likewise. * arm-tdep.c (arm_smash_text_address): New function. * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.