diff options
author | Tristan Gingold <gingold@adacore.com> | 2010-01-11 15:39:41 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2010-01-11 15:39:41 +0000 |
commit | 42fa08916b972ce06b7bcdee8e0ce4171053cd89 (patch) | |
tree | 7dfede22b30634369294adc9839b73414f246fc2 /bfd/mach-o-i386.c | |
parent | cba0723b0f0fb521d83dc1d7cd1cdcdb4991dd02 (diff) | |
download | gdb-42fa08916b972ce06b7bcdee8e0ce4171053cd89.zip gdb-42fa08916b972ce06b7bcdee8e0ce4171053cd89.tar.gz gdb-42fa08916b972ce06b7bcdee8e0ce4171053cd89.tar.bz2 |
2010-01-11 Tristan Gingold <gingold@adacore.com>
* mach-o.h (bfd_mach_o_backend_data): Add arch field.
(bfd_mach_o_set_arch_mach): New prototype.
* mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
(bfd_mach_o_set_arch_mach): New function.
(bfd_mach_o_gen_mkobject): New function.
Set TARGET_ARCHITECTURE for the generic back-ends.
* mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
Check that TARGET_ARCHITECTURE is defined.
Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
* mach-o-i386.c (TARGET_ARCHITECTURE): Define.
Diffstat (limited to 'bfd/mach-o-i386.c')
-rw-r--r-- | bfd/mach-o-i386.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/mach-o-i386.c b/bfd/mach-o-i386.c index 53de64e..e46cbc6 100644 --- a/bfd/mach-o-i386.c +++ b/bfd/mach-o-i386.c @@ -288,6 +288,7 @@ bfd_mach_o_i386_print_thread (bfd *abfd, bfd_mach_o_thread_flavour *thread, #define TARGET_NAME mach_o_i386_vec #define TARGET_STRING "mach-o-i386" +#define TARGET_ARCHITECTURE bfd_arch_i386 #define TARGET_BIG_ENDIAN 0 #define TARGET_ARCHIVE 0 #include "mach-o-target.c" |