ppc-aix osabi sniffer: Turn test of bfd flavour into assertion
authorJoel Brobecker <brobecker@gnat.com>
Fri, 19 Oct 2012 19:58:18 +0000 (19:58 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 19 Oct 2012 19:58:18 +0000 (19:58 +0000)
commitbeb4b03cbebf97e3f16836a770c8eced22ee6a1c
tree499f916416078ff34e6c63911160de180739d686
parenta5b1262727001de95f76936d2462e92fe183a8e7
ppc-aix osabi sniffer: Turn test of bfd flavour into assertion

Due to the way this function is registers, we know that given bfd's
flavour should always be bfd_target_xcoff_flavour, thus making
the former test always true, which means that this function should
always return GDB_OSABI_AIX, and never return GDB_OSABI_UNKNOWN.

This patch also fixes a typo detected by Tom Tromey that caused
the test itself to be completely ineffective.

gdb/ChangeLog (by Tom Tromey and Joel Brobecker):

        * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
        inneffective if condition by gdb assertion.  Add function
        description comment.
gdb/ChangeLog
gdb/rs6000-aix-tdep.c