[commit] Always define the macros (when not defined)
Andrew Cagney
ac131313@redhat.com
Sat May 31 03:35:00 GMT 2003
Hello,
This simplifies a little part of the gdbarch stuff, changing:
-#if GDB_MULTI_ARCH
-#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined
(TARGET_ARCHITECTURE)
#define TARGET_ARCHITECTURE (gdbarch_bfd_arch_info (current_gdbarch))
#endif
-#endif
to:
+#if !defined (TARGET_ARCHITECTURE)
#define TARGET_ARCHITECTURE (gdbarch_bfd_arch_info (current_gdbarch))
#endif
the old convoluted condition dates back to when many many things were
still relying on #ifdef.
The simplification doesn't affect multi-arch targets. It does affect
the sparc-elf, which hasn't yet quite made it though - recent changes
broke its build and this helps fix it (besides, I needed an excuse for
simplifying gdbarch.sh a little :-).
committed,
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20030531/5f89d590/attachment.ksh>
More information about the Gdb-patches
mailing list