diff options
author | Tristan Gingold <gingold@adacore.com> | 2008-11-20 09:28:06 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2008-11-20 09:28:06 +0000 |
commit | 6aa341c73943a7063a43a6a71976f6e5068660d3 (patch) | |
tree | 1d9e2768f9e12a3e1fa50540e8c502c80742c14e /bfd/bfd.c | |
parent | d6e14abcef18288d8d0ec8e204c777611b58c19a (diff) | |
download | gdb-6aa341c73943a7063a43a6a71976f6e5068660d3.zip gdb-6aa341c73943a7063a43a6a71976f6e5068660d3.tar.gz gdb-6aa341c73943a7063a43a6a71976f6e5068660d3.tar.bz2 |
2008-11-20 Tristan Gingold <gingold@adacore.com>
* bfd.c (is32bit): Use architecture information for non-ELF
targets.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r-- | bfd/bfd.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1475,9 +1475,8 @@ is32bit (bfd *abfd) return bed->s->elfclass == ELFCLASS32; } - /* For non-ELF, make a guess based on the target name. */ - return (strstr (bfd_get_target (abfd), "64") == NULL - && strcmp (bfd_get_target (abfd), "mmo") != 0); + /* For non-ELF targets, use architecture information. */ + return bfd_arch_bits_per_address (abfd) <= 32; } #endif |