aboutsummaryrefslogtreecommitdiff
path: root/bfd/newsos3.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2012-10-19 19:58:18 +0000
committerJoel Brobecker <brobecker@gnat.com>2012-10-19 19:58:18 +0000
commitbeb4b03cbebf97e3f16836a770c8eced22ee6a1c (patch)
tree499f916416078ff34e6c63911160de180739d686 /bfd/newsos3.c
parenta5b1262727001de95f76936d2462e92fe183a8e7 (diff)
downloadgdb-beb4b03cbebf97e3f16836a770c8eced22ee6a1c.zip
gdb-beb4b03cbebf97e3f16836a770c8eced22ee6a1c.tar.gz
gdb-beb4b03cbebf97e3f16836a770c8eced22ee6a1c.tar.bz2
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.
Diffstat (limited to 'bfd/newsos3.c')
0 files changed, 0 insertions, 0 deletions